dynamically adding data in shop product

1 reply · opened Jan 23, 2019

Ddanishboy000Jan 23, 2019

I'm using default shop 1 template and when I click on quick view on the product it opens the modal box and show product file. In the a tag the link to this model is include/ajax/shop-item.html When I change something in shop-item.html, the change doesn't reflect in the modal box.
Also I need to display the data in modal dynamically from mysql database using php. I understand that I need to convert shop-item.html to shop-item.php and send get request like shop-item.php?id=1 and then use this id to fetch data from mysql database and return that data back. Will it work this way?

SSemicolon WebSTAFFJan 23, 2019

Hello,

This appears to be an issue with the Browser Cache. Please open the include/ajax/shop-item.html Directly in the Browser first and then try to open it via AJAX, it should work normally then.

Yes, exactly! As you have mentioned, you will need to use: shop-item.php?id=1 to fetch the Item from the Database and display it. But you will need to integrate all the PHP manually.

Hope this Helps!

Let us know if we can help you with anything else or if you find any further issues.

Have the same question, or something new?

Sign in to the Canvas dashboard to reply or open your own topic. Canvas owners get direct help from the SemiColonWeb team.

Reply on the dashboard