Display plots on Prestashop product page

Asked

Viewed 565 times

1

Good morning, I was wondering if someone could help me indicating how do I display the price and amount of parcels on a product detail page (product.tpl) in the Shop. Example: 10 x R$ 10,00. If anyone knows, I’d appreciate it.

Vinícius Lima

  • do you want to develop an addon of your own or can it be an existing one? Normally are paid Addons.

  • I want to develop one of my own, but I don’t know if that would characterize an addon or something that someone would buy because I just want to pull this information out of each of the bank’s shares and value and display it on the front. Could return to the front until an array even outside that $product object.

  • There are two means. A simpler means is to create an override in the module that displays product detail on the front. Another means is to create a module in which a hook is added in Productdetails (front). Personal opinion, a hook is better because an override does not quite have that purpose, it is more to fix a standard functionality. In your case is to implement a new functionality, so recommend creating a module.

  • Well actually I already imagined it, my main doubt is if there is any place by which I can pull this information for example a Product::getParcels(), or Product::getAllData that returns me-if the bank shares and price of the same because I do not know in which table are stored. My problem is to take this information from the bank, the implementation in the theme I can do well as long as I can get the information from the bank through some method of some class or at least knowing the table where they are saved.

  • right, I think I can get the information. when I find publish here.

  • Okay, thank you very much Daniel. I’ll also be looking for it. Thanks for the help!

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.