I'm using press the shop version 1.7. I'm about to make a small module/add on, that will give border in product quantity cell in invoice if quantity is greater than 1. What are the possible ways to do this?
Use Hook actionPDFInvoiceRender to intercept template values and add a PDF override in your module to manage rendering.
Related
In my Prestashop web there are 3 types of products (In stock, On demand and Coming soon). When a user clicks on Add to cart button in product page, it should shows an alert saying the products cannot be mixed (you cannot buy a product in stock and a product on demand). I use BlockCart module but I cant find the file which I have to edit. Also, I have looked in CartController or ProductController but nothing.
Can you help me?
You Can check in controllers/front/CartController.php for processChangeProductInCart Function.
I wonder if there's a way to pass some extra information (attribute) by using custom add to cart button.
We've got clear products with their prices. We also sell the same products with print.
Printed version is more expensive. The product is going out from special generator and there, "add to cart button" will be added to where -if that's possible- I would like to pass attribute to this product (so I could change base price to printed)
Is there any way to pass/add this attribute to the product before it will go to cart?
I think the best way to do that would be use combinations - you can make combination with different prices and then you will be able to send combination_id using your extra button.
In layered navigation block module of a Prestashop 1.6 store I have activated the price filter option and configured it to show prices with tax.
However, on the frontend the filter are using prices without tax, which results in showing products outside of the price range selected by user.
How can I fix that?
I'm using PrestaShop 1.5.5.0.
I want to add a custom check box list to the product page so a customer can choose shipping carrier on the product details page. Can it be possible ? I can add a specific fields in the product details page. As I'm new it's little difficult for me to figure out how can I add other details and carry the values to the order page and that is also dynamically. Is there any module available by which I can accomplish the task ? Please suggest me.
What I want to do is this : Choosing shipping carrier in product page :
http://www.wayfair.com/LifeStyle-Solutions-Zurich-Platform-Bed-LS3-ZUR-X-CP-LF1087.html
Well It's a tough task. You need to work on the controller if you want to carry the values or create a module like shipping estimate and hook it to the product page that might work.
I'm developing an integration on a opencart site with an hardcoded solution for calculate a cost of a product according to some input like height width and quantity and other some hidden value.
so
I'm trying to edit the add action for the cart to manage the sub-total in this specific circustance.
so I find in /catalog/controller/checkout/cart.php the this method:
$this->cart->add($this->request->post['product_id'], $this->request->post['quantity'], $option);
This action is in both of the cart controller page, index and update, but where is it the "add" method?
Thanks
You can find the method in
/system/library/cart.php
Be sure to make backups before editing, as its a core file