-
Posts
38 -
Joined
-
Last visited
-
Days Won
1
ecentury last won the day on June 18 2022
ecentury had the most liked content!
About ecentury
- Birthday 08/24/1979
Contact Methods
- Website
Profile Information
-
Location
UK
-
First Name
David
-
Last Name
Walker
-
Activity
Developer
Recent Profile Visitors
ecentury's Achievements
-
ecentury started following You Do Not Have Access To This Product , How to Change "Price Drop" , Stripe Module 3.0.5 - Update FORM not appearing. (Prestashop 1.7.8.8) and 7 others
-
How to Change "Price Drop"
ecentury replied to PEJ33's topic in Addons, modules and themes developers
Just in case anyone else needs this for Prestashop 1.7, the problem is that prices-drop is referred to in many files so can't easily be changed in translation or tpl templates This way works by using the smarty text replace function So In /themes/YOURTHEME/templates/catalog/listing/product-list.tpl Change this line <h1 id="js-product-list-header" class="h1 page-title"><span>{$listing.label}</span></h1> to the following (and change the sale text to anything you want) <h1 id="js-product-list-header" class="h1 page-title"><span>{$listing.label|replace:'Prices drop':'Sale'}</span></h1> This will replace the 'Prices drop' text for 'sale' -
Just in case anyone needs this for Presta 1.7 to hide the price and add to cart when either the price is 0 os product out of stock, you can copy over the following files to your child theme /home/eaddfb17/public_html/themes/YOURTHEME/templates/catalog/_partials/product-add-to-cart.tpl /home/eaddfb17/public_html/themes/YOURTHEME/templates/catalog/_partials/product-prices.tpl And then add the following before the blocks you want to hide, i.e {block name='product_add_cart'} and {block name='product_price_and_shipping'} {if $product.price_amount eq "0"} <p> YOU CAN ADD TEXT IF YOU WANT FOR WHEN PRICE is 0 or just delete this sentence</p> {elseif $product.quantity eq "0"} <p> YOU CAN ADD TEXT IF YOU WANT FOR WHEN QUANTITY is 0 or just delete this sentence</p> {else} And then after the block, end the if statement using {/if}
-
Thanks for solution Just to add if you want the delivery slip / invoice in exact same product order as you can see in the backend then change line 139 (in above file location) ' . ($this->id && $this->number ? ' AND od.`id_order_invoice` = ' . (int) $this->id : '') . ' ORDER BY od.`product_name`'); to ' . ($this->id && $this->number ? ' AND od.`id_order_invoice` = ' . (int) $this->id : '') . ' ORDER BY od.`id_order_detail` DESC'); Best to create an override
- 6 replies
-
- sort order
- delivery slip
-
(and 2 more)
Tagged with:
-
Royal Mail Tracking URL has changed - new one?
ecentury replied to Pixel's topic in Configuring and using PrestaShop
An old post, but still relevant. The url for tracking royal mail UK has changed again. You now need to enter https://www.royalmail.com/portal/rm/track?trackNumber=@ -
This is a bit of an issue in prestashop as at the top of the 'print order' page it says the quantity of messages, but then for some reason the following code (d-print-none) has been added to the messages section so it does not print them: To print the customer messages in the print order page, go to this file ../src/PrestaShopBundle/Resources/views/Admin/Sell/Order/Order/Blocks/View/messages.html.twig and change <div class="card mt-2 d-print-none"> to <div class="card mt-2">
-
ERROR: Price specification not found for currency:
ecentury replied to Jarkko Muhonen's topic in General topics
Thank you for posting solution. Worked for me. Strange that this error only showed a year afer migration, but seems good now. -
Guest ID's - do they need to be deleted to speed up site?
ecentury replied to bnadauld's topic in General topics
Best to use this query for clearing out the guest database This will keep the info for converted guests / carts, and just erase the guests that did not convert to customers (which will be most of them) DELETE g FROM pr_guest as g LEFT JOIN pr_cart as c ON g.id_guest = c.id_guest WHERE c.id_cart IS NULL AND g.id_customer = 0 -
Presta does not have any group permissions that you can set by default for the the products, you can only set group permissions in categories. The solution to the problem when you encouter 'You do not have access to this product.' is to go to the category of that product and make sure all relevant groups have access. The error should be phrased better, i.e. 'You do not have access to the category that this product is in, and therefore cannot see this product.'
-
You Do Not Have Access To This Product
ecentury replied to baptizein's topic in Configuring and using PrestaShop
This is a pretty old thread but i think still an issue for some in Prestashop 1.7 Presta does not have any group permissions that you can set by default for the the products, you can only set group permissions in categories The solution to the problem when you encouter 'You do not have access to this product.' is to go to the category of that product and make sure all relevant groups have access. This should solve the issue, really the error should be phrased better, i.e. 'You do not have access to the category that this product is in, and therefore cannot see this product.' -
How to get product page display price with tax?
ecentury replied to leonardo2212's topic in Configuring and using PrestaShop
In case anyone needs this code, the easiest way to display price with and without tax (VAT in my case) on the product page is just this code <p><div class="text-muted">£{l s='%price% with UK VAT' d='Shop.Theme.Catalog' sprintf=['%price%' => ($product.price_tax_exc*1.2)|string_format:"%.2f"]}</div></p> Where you can alter the calculation (i.e. *1.2) for your tax settings This way you can include both prices without and with tax on your product page This is tested on latest prestashop 1.7 version, include in the relevant .tpl file -
Thanks for the above, I have extended it to show price / quantity / reference / combinations for all products Good if you want to export your products (with combinations) so you can edit price / quantity and then reimport within prestashop You might have to change ps_ to your database name if you have changed it on installation SELECT m.name AS 'Manufacturer', p.id_product 'Product ID', pl.name 'Product Name', GROUP_CONCAT(DISTINCT(al.name) SEPARATOR ", ") AS Combinations, IFNULL(pa.reference, p.reference) 'Reference', IFNULL(s.quantity, p.quantity) 'Quantity', IFNULL(p.price,'0') 'Main Price', IFNULL(pa.price,'0') 'Combination Price' FROM ps_product p LEFT JOIN ps_product_lang pl ON (p.id_product = pl.id_product and pl.id_lang=1) LEFT JOIN ps_manufacturer m ON (p.id_manufacturer = m.id_manufacturer) LEFT JOIN ps_category_product cp ON (p.id_product = cp.id_product) LEFT JOIN ps_category c ON (cp.id_category = c.id_category) LEFT JOIN ps_category_lang cl ON (cp.id_category = cl.id_category and cl.id_lang=1) LEFT JOIN ps_product_attribute pa ON (p.id_product = pa.id_product) LEFT JOIN ps_stock_available s ON (p.id_product = s.id_product and pa.id_product_attribute=s.id_product_attribute) LEFT JOIN ps_product_tag pt ON (p.id_product = pt.id_product) LEFT JOIN ps_product_attribute_combination pac ON (pac.id_product_attribute = pa.id_product_attribute) LEFT JOIN ps_attribute_lang al ON (al.id_attribute = pac.id_attribute and al.id_lang=1) GROUP BY p.id_product,pac.id_product_attribute order by p.id_product
-
Inventory is not reducing after a sale
ecentury replied to QNP's topic in Configuring and using PrestaShop
For anyone that needs this in the future the query you need to update is the following (First backup and make duplicate of ps_stock_available table just in case.) UPDATE ps_stock_available SET depends_on_stock = 0; You might have to change the 'ps_' to whatever your tables are called if you changed them at install I think this problem starts if you migrate data from 1.6 to 1.7 and it migrates with this field set to 1, whenever i update a product manually in the backend, it always updates this field to 0 I think the ps_stock_available field relates back to the advanced stock management features of prestashop 1.5 / 1.6? -
prestashop 1.7.7 php mail problems
ecentury replied to jondrew's topic in Configuring and using PrestaShop
Works for me by just removing the proc_open from the disable_functions Its not just on the test email option, no email sends with this disabled, including password recovery emails Using krystal hosting if that helps anyone -
This works in prestashop 1.7.7 .quick-view { display: none !important; }