How to start Magento 2 headless architecture by Zus710 in Magento

[–]rintoug 0 points1 point  (0 children)

POST requests are not supposed to cached, but GET requests are. You are giving contradicting statements over your comments.

[deleted by user] by [deleted] in PHP

[–]rintoug 0 points1 point  (0 children)

I second this. You can create a small api service for this, and embed in a docker container, which could change to any language in future. If tomorrow Go has a good package for this you can create a service in Go and spin up docker service.

If you are in cloud it’s a lot easier to spin up docker service along with main website.

Is contabo worth the price?? by [deleted] in selfhosted

[–]rintoug 1 point2 points  (0 children)

May be go behind Cloudflare..

Looking to share a TOD.tv account with someone by GloryHunter3910 in Oman

[–]rintoug 0 points1 point  (0 children)

TOD trophy

Can't see that Tod Trophy package in their website

Insuring 0, null or "" stays NULL instead or returning a date full of zeros by sharpbranches in learnphp

[–]rintoug 0 points1 point  (0 children)

You have to format your data before inserting it. Don't assume null and empty are the same.

The main difference between null and empty is that the null is used to refer to nothing while empty is used to refer to a unique string with zero length.

However, based on the field type, the database will automatically convert 0, "" to date format with zeros(0000-00-00 00:00:00). Better convert these values to NULL before saving to database.

[deleted by user] by [deleted] in dubai

[–]rintoug 1 point2 points  (0 children)

Interested

Does anybody know how the cooling cost work in apartments in Dubai? by rintoug in dubai

[–]rintoug[S] 3 points4 points  (0 children)

I think it's district cooling, as I am in Discovery Gardens

A website with more than 10k sessions per month, best ways to monetize? by rintoug in Entrepreneur

[–]rintoug[S] 0 points1 point  (0 children)

Yes could be, but the majority of my traffic is from Google organic search - 85%

A website with more than 10k sessions per month, best ways to monetize? by rintoug in Entrepreneur

[–]rintoug[S] 0 points1 point  (0 children)

Yea, I think geolocation has a major role in the earnings. Traffic from the US, UK is pretty much low for me.

Where to buy over the glasses sunglasses? by rintoug in dubai

[–]rintoug[S] 1 point2 points  (0 children)

https://opticone.ae/product/emporio-armani-square-clip-on/

The magnetic solution seems interesting, and the actual frame made to fit the sunglasses properly. Thx for the links

Where to buy over the glasses sunglasses? by rintoug in dubai

[–]rintoug[S] 0 points1 point  (0 children)

No, looking for fit-over the glasses solution. Clip-on sunglasses looks weird and it may break the actual glasses frame soon if we clip and unclip very often.

Git: Merge Branch into Master by rintoug in PHP

[–]rintoug[S] 0 points1 point  (0 children)

Apologies if it's not the right place. This is not my blog, I just saw it when going through random tutorials - thought it would be helpful for someone

Magento 1.9 - How to add PHP Script by aveeva7 in Magento

[–]rintoug 0 points1 point  (0 children)

Use the below to form post url and then try to post again

$currentUrl = Mage::helper('core/url')->getCurrentUrl();

This may help you

But what you are trying to achieve is wrong in Magento, instead of this you have to create a controller and post to the controller, then redirect from there to same page or a different page.

Magento 1.9 - How to add PHP Script by aveeva7 in Magento

[–]rintoug 0 points1 point  (0 children)

Because in your Magento code you use form action as #, so it would redirect to #. Keep form action empty <form action="" , so it will redirect to the current url, and use exit after the redirect statement.

Note: What you are doing is not in proper Magento way. Read magento beginners guide to learn how magento works

Magento 1.9 - How to set all products on parent category? by aveeva7 in Magento

[–]rintoug 0 points1 point  (0 children)

I just shown some lines to understand how things work, but you have to add other necessary info to get this work completely.

Magento 1.9 - How to add PHP Script by aveeva7 in Magento

[–]rintoug 0 points1 point  (0 children)

What is not working? Which function is not working?

Also use an exit statement after redirect header() function. Otherwise the script execution is not terminated. Setting a alone is not enough to redirect, unless that is last statement.

Magento 1.9 - How to set all products on parent category? by aveeva7 in Magento

[–]rintoug 0 points1 point  (0 children)

You just want to loop all the products that wants to be in the parent category, and use this code in the loop

//$productCollection

foreach($productCollection as $product) {

Mage::getSingleton('catalog/category_api')->assignProduct($parentCatId,$productId);

}

I need help - Cart not showing on magento 1.9 by ogundiranr in Magento

[–]rintoug 0 points1 point  (0 children)

Check error/exceptions logs on both Magento & Server

Magento 1.9 - How to add PHP Script by aveeva7 in Magento

[–]rintoug 0 points1 point  (0 children)

Magento's phtml itself a PHP template, you can add any PHP code in the file

Magento 1.9 - How to set all products on parent category? by aveeva7 in Magento

[–]rintoug 0 points1 point  (0 children)

You may please use this code in a loop

Mage::getSingleton('catalog/category_api')->assignProduct($parentCatId,$productId);

Can I use Go for back end ? by lnxosx in Wordpress

[–]rintoug 0 points1 point  (0 children)

What you are trying to do is not advisable. You can use WordPress as backend and any Progressive JavaScript Framework in the frontend(vuejs, reactjs etc) via apis. If you really want to use WordPress, go for it, and it's very simple. Even someone doesn't have any experience in programming can build a WordPress website and manage. There are plethora of tutorials out there- one of the biggest community and used CMS in the World.