-
Posts
230 -
Joined
-
Last visited
-
Days Won
1
Everything posted by Mian Waqas
-
Issue was , the Admin default template JS file were edited . due to which the backoffice pages were not working correctly. had to restore them
-
Solved myself. thanks
-
In prestashop 8.1 , when editing quantity of product in backoffice > order > order details, after clicking save it duplicates the product until i refresh it. any idea prestashop experts? Thanks
-
Remove "Alias" field on signup form
Mian Waqas replied to toimata's topic in Configuring and using PrestaShop
better find the side-effects of core changes. And similarly find the side-effects of CSS hiding. (for me i had already tested & had found none with core changes & dozens with css changes) and afterwards i had advised them with the correct method. -
Remove "Alias" field on signup form
Mian Waqas replied to toimata's topic in Configuring and using PrestaShop
Yeah but you can further override it right? and the CSS method is old school for this, as anyone can change the display:none from developer tools on browser easily to show it? am i correct? if i am correct then why telling them to just simply hide this important box via CSS, if 1 change by 1 customer by unhiding it can ruin all there logic they want to make. why miss guide them at first place? so like i said its the proper way to do, which most of the people are looking for. Kind Regards -
Remove "Alias" field on signup form
Mian Waqas replied to toimata's topic in Configuring and using PrestaShop
Hello All, Read this topic and i want to add that the correct method to hide the "Alias" field is to remove this code from Public_html/classes/form/CustomerAddressForm.php this will hide it from the user to edit. (see attached image) -
Prestashop 1.7 - Faceted search in search results
Mian Waqas replied to asterisco's topic in General topics
cleared cache? -
Hello, 1. Turn on debug mode to see any errors 2. Downgrade your PHP version to 7.0 or 7.2 3. check PHP ini settings, and make it compatible with your store data amount. Regards
-
Hi, This is just for information for anyone looking for this kind of change. If you have visibility of "Out of stock products" active in PS, and you want to hide the "out of stock products" in certain modules/hooks you can simply edit the tpl file of that module/hook like below. for example if you want to hide the out of stock products for "ps_categoryproducts" module edit > /modules/ps_categoryproducts/views/templates/hook/ps_categoryproducts.tpl file change this line {foreach from=$products item="product"} {include file="catalog/_partials/miniatures/product.tpl" product=$product} {/foreach} to this {assign var="displayedProducts" value=0} {while $displayedProducts < 4} {foreach from=$products item="product"} {if $product.quantity > 0} {include file="catalog/_partials/miniatures/product.tpl" product=$product} {assign var="displayedProducts" value=$displayedProducts+1} {/if} {if $displayedProducts >= 4} {break} {/if} {/foreach} {/while} via this code, it will skip the out of stock product , and will show the next product (will not be empty) this works with PS 1.8 as well Thanks
-
Restrict a shipping carrier for certain category
Mian Waqas replied to Mian Waqas's topic in General topics
well yeah, but i dont want to do it that way, as there are already products in that category and will be added more. so better way will be to come up with custom coding i guess? -
Hi, I am wroking in PS 1.7.8, have supercheckout module active. i want a certain category which id is 10 to be restricted on shipping carrier 128 so if a product from this category is added to cart/checkout, the shipping carrier 128 wont be selectable or hidden with an message. please if anyone know how to do this or if there is a better way for this , will be thank full to regards
-
Then he should simply update the code with it, because you not going to change it daily... also if somehow / someone is editing the "pick up in store" carrier every day 😀 then here is the updated code to get the shippingMethod by name rather then by ID if ($shippingMethodName === $desiredShippingMethodName) { // Set the exact shipping method name in above variable return 1; hope this helps someone
-
well i guess its not about the email itself only, but order status need to be changed to "ready for pickup!" when the carrier is "pick up in store" logically it will send this order status email rather then payment accepted - dispatch etc & if the carrier is different it will change order status as normal. for this we will add an if statement to protected function of the payment validation methods - something like this which worked for me { $shippingMethod = (int) $this->context->cart->id_carrier; if ($shippingMethod === 2) //2 is the id of pickup in store carrier. you will need to replace it with yours store id { return 1; // Set the order status to 1 (1 will be the id of the order status which for me is ready for pickup! ) } } this way i successfully achieved it, i hope this will help someone in future regards
-
well just saw your post after years, i am trying to still figure this out for a store, where when shipping method is "Pick up in store" & payment method is Webpay the alternative email shall be sent to customer. did you ever got successful in it? if not then i wills surely update this post when i achieve it.
-
I had checked it now, this is taking only 1 second for me, Maybe due to recent module disabling the it is fixed, and you might need to clear your browser cache Regards
-
Yes check Google chrome console errors, or turn of the maintenance mode on your store so that i can check it.
-
Hi, as i had mentioned earlier in my post, this is usually because of other module which you need to debug by disabling one by one. i hope this helps
-
it should work, can you clear cache etc please. but here is another solution as well, in the theme.js file look for the following code toggleContent: function($content, $button, speed) { $content.slideToggle(speed); }, replace it with the following toggleContent: function($content, $button, speed) { if (!$content.hasClass('cart-summary-voucher')) { $content.slideToggle(speed); } else { $content.toggle(); } },
-
Available stock and article number below each other
Mian Waqas replied to Lizenka's topic in General topics
Open themes/your-theme/templates/catalog/_partials/product.tpl search for the following line <span class="product-reference">{if $product.reference}{l s='Reference:'} {$product.reference}{/if}</span> replace it with the following code {if $product.reference}<span class="product-reference">{l s='Reference:'} {$product.reference}</span>{/if} {if $product.available_now > 0}<span class="product-available">{l s='Available stock:'} {$product.available_now}</span>{/if} -
How add current stock level for each product in delivery slip?
Mian Waqas replied to Nathalie W's topic in General topics
modify the pdf_invoice.tpl or pdf_delivery_slip.tpl file in your PrestaShop theme. Here are the steps: > in the themes/your-theme/pdf directory of your PrestaShop installation. > Open the pdf_invoice.tpl or pdf_delivery_slip.tpl file in a text editor. > Locate the {foreach from=$products item=product} loop in the file. This loop is responsible for iterating over each product in the order and displaying its details. > Inside the loop, you can add the following code to display the current stock level for each product: {$product.available_now|intval} {l s='in stock'} This code will display the current stock level for each product on the delivery slip. dont forget to clear cache- 2 replies
-
- delivery slip
- product
-
(and 2 more)
Tagged with: