Categories
CMS Development Prestashop

Prestashop 1.7 / back office error 500 after activate module

PrestaShop 1.7.6.1 Everything worked until the ps_featuredproducts module was activated. After activation of the module I saw error 500. I set the debug mode (config/defines.inc.php): define(‘_PS_MODE_DEV_’, true); I couldn’t deactivate the ps_featuredproducts module so I cleared the cach. And it helped but I still see error 500 on admin page after turning off debug mode. […]

Categories
CMS Development Prestashop

Prestashop PayTabs payment gateway module error

my website Payment page give me 500 internal server error, so i turn on debug mode [in Prestashop Control Panel give me: { Notice on line 122 in file /home/www/mywebsitename/modules/paytabs/paytabs.php [8] Undefined property: Paytabs::$paytabs_id Notice on line 123 in file /home/www/mywebsitename/modules/paytabs/paytabs.php [8] Undefined property: Paytabs::$paytabs_password }] [And in front payment page : { (1/1) FatalThrowableError […]

Categories
CMS Development Prestashop

Get and display parent category image on subcategory page on Prestashop 1.7

My plan is to display different background on the div on the layout folder of Prestashop 1.7 that I will upload as a category image. To avoid making multiple uploads of the same image I want to get the image of the parent category when I am located in a subcategory. If Parent Category 1 […]

Categories
CMS Development Prestashop

Product quantity selection based price calculation in prestashop

I need an option to show the product price matrix as like below image, As like this above image I need to show product price matrix in shop page, This price will be get from external source based on the product category I need to get base price from that json file and need to […]

Categories
API CMS Development Prestashop

ISSUE API PRESTASHOP 1.7

I currently have a problem with the prestashop API. I’m trying to update the amount of a combination of a product. <?php $request = new HttpRequest(); $request->setUrl(‘https://myurl.com/api/combinations/15544’); $request->setMethod(HTTP_METH_PUT); $request->setQueryData(array( ‘io_format’ => ‘JSON’ )); $request->setHeaders(array( ‘cache-control’ => ‘no-cache’, ‘Connection’ => ‘keep-alive’, ‘Accept-Encoding’ => ‘gzip, deflate’, ‘Host’ => ‘myurl.com’, ‘Cache-Control’ => ‘no-cache’, ‘Accept’ => ‘*/*’, ‘User-Agent’ => […]

Categories
CMS Development Prestashop

Prestashop 1.6 – How to add custom paramater in product’s URL

I’d like to add a custom parameter at the end of the product’s URL in Prestashop 1.6. How can I add a parameter like “&param=value” which be interpreted correctly with URL Rewriting? Thanks in advance. Regards, Thomas.

Categories
CMS Development Prestashop

How to put error messages inside a Prestashop 1.7 inside form box?

I’m creating a recaptcha module to front office, all code is ok, but the error message is going to wrong place. I’m using the Prestashop 1.7.6.1, the error message is printing on top of front office, and I need the error message to print inside form box. I’m set the error message like this: modules/recaptcha/recaptcha.php […]

Categories
CMS Development Prestashop

PRESTASHOP How to check/get order status by API

I need to check order status of order I created. I have API key and order number. Can I check by API if order status were changed? I.e. admin change status of an order to: shipped. Can I (using API) get an information that status was chenged? I need to check order status from external […]

Categories
CMS Development Prestashop

Datatrics Prestahop

I need to add the Datatrics code into checkout.tpl, cart.tpl and product.tpl pages. But, I don’t know how to call the product and order variables. Here’s the code for Product Views script: <script type=”text/javascript”> // Set the view of a product _paq.push([‘setEcommerceView’, “SKU”, // (required) SKU: Product unique identifier “NAME”, // (optional) Product name “CATEGORYNAME”, […]

Categories
CMS Development Domain Prestashop

Prestashop Link::getProductLink() returns wrong link (without category in it)

Link::getproductLink() returns incorrect url, after opening this url it’s either redirection or error message when in dev mode. Someone here (PrestaShop $link -> getProductLink($product) gives incorrect URL) had the same problem, people answered him to disable the DEV mode then the message ([Debug] This page has moved Please use the following URL instead:…) is gone […]