Pichayutm Posted September 24, 2013 Share Posted September 24, 2013 My case is whenever I want to increase/decrease the quantity of products on order summary page(you reach this page right after pressing checkout button), I get a error warning (Please see attached file). So I tried disabling the SSL and now it works fine. My question is how can I turn off SSL on particular page, not the whole system? PS 1.5.5 Thank you Link to comment Share on other sites More sharing options...
vekia Posted September 24, 2013 Share Posted September 24, 2013 Link to comment Share on other sites More sharing options...
Pichayutm Posted September 26, 2013 Author Share Posted September 26, 2013 Anyone? Link to comment Share on other sites More sharing options...
vekia Posted September 26, 2013 Share Posted September 26, 2013 ohh my post dissappeared! (!?) i said that when you're running store under ssl, on cart section website trying to connect to non-secured website so ajax calls don't work then can you check what kind of connection increase / decrease qunatities feature use? Link to comment Share on other sites More sharing options...
Pichayutm Posted September 26, 2013 Author Share Posted September 26, 2013 Thanks for the reply. I'm not sure about what you ask for so I capture the screen at the moment after I press increase-quantity button. Hope these could help you. Link to comment Share on other sites More sharing options...
vekia Posted September 26, 2013 Share Posted September 26, 2013 it is exactly as i thought, youre on https connection and AJAX call below trying to connect to non-secured http what to do? change url from http to https for increase / decrease quantity buttons, will work then Link to comment Share on other sites More sharing options...
Pichayutm Posted September 27, 2013 Author Share Posted September 27, 2013 it is exactly as i thought, youre on https connection and AJAX call below trying to connect to non-secured http what to do? change url from http to https for increase / decrease quantity buttons, will work then I see. Hate to do this, but please suggest me how exactly to fix that. Link to comment Share on other sites More sharing options...
vekia Posted September 27, 2013 Share Posted September 27, 2013 okay, can you please show me contents of your shopping-cart-product-line.tpl file? it is located in your theme directory Link to comment Share on other sites More sharing options...
Pichayutm Posted September 27, 2013 Author Share Posted September 27, 2013 ํYes, sure. Here is my code from shopping-cart-product-line.tpl {* * 2007-2012 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2012 PrestaShop SA * @version Release: $Revision: 6594 $ * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} <tr id="product_{$product.id_product}_{$product.id_product_attribute}_0_{$product.id_address_delivery|intval}{if !empty($product.gift)}_gift{/if}" class="{if isset($productLast) && $productLast && (!isset($ignoreProductLast) || !$ignoreProductLast)}last_item{elseif isset($productFirst) && $productFirst}first_item{/if} {if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0}alternate_item{/if} cart_item address_{$product.id_address_delivery|intval} {if $odd}odd{else}even{/if}"> <td class="cart_product"> <a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'htmlall':'UTF-8'}"><img src="{$link->getImageLink($product.link_rewrite, $product.id_image, 'small')}" alt="{$product.name|escape:'htmlall':'UTF-8'}" {if isset($smallSize)}width="{$smallSize.width}" height="{$smallSize.height}" {/if} /></a> </td> <td class="cart_description"> <h5><a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'htmlall':'UTF-8'}">{$product.name|escape:'htmlall':'UTF-8'}</a></h5> {if isset($product.attributes) && $product.attributes}<a href="{$link->getProductLink($product.id_product, $product.link_rewrite, $product.category, null, null, $product.id_shop, $product.id_product_attribute)|escape:'htmlall':'UTF-8'}">{$product.attributes|escape:'htmlall':'UTF-8'}</a>{/if} </td> <td class="cart_ref">{if $product.reference}{$product.reference|escape:'htmlall':'UTF-8'}{else}--{/if}</td> <td class="cart_unit"> <span class="price" id="product_price_{$product.id_product}_{$product.id_product_attribute}_{$product.id_address_delivery|intval}{if !empty($product.gift)}_gift{/if}"> {if !empty($product.gift)} <span class="gift-icon">{l s='Gift!'}</span> {else} {if isset($product.is_discounted) && $product.is_discounted} <span style="text-decoration:line-through;">{convertPrice price=$product.price_without_specific_price}</span><br /> {/if} {if !$priceDisplay} {convertPrice price=$product.price_wt} {else} {convertPrice price=$product.price} {/if} {/if} </span> </td> <td class="cart_quantity"{if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0} style="text-align: center;"{/if}> {if isset($cannotModify) AND $cannotModify == 1} <span style="float:left"> {if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count} {else} {$product.cart_quantity-$quantityDisplayed} {/if} </span> {else} {if isset($customizedDatas.$productId.$productAttributeId) AND $quantityDisplayed == 0} <span id="cart_quantity_custom_{$product.id_product}_{$product.id_product_attribute}_{$product.id_address_delivery|intval}" >{$product.customizationQuantityTotal}</span> {/if} {if !isset($customizedDatas.$productId.$productAttributeId) OR $quantityDisplayed > 0} <div id="cart_quantity_button" class="cart_quantity_button" style="float:left;"> <a rel="nofollow" class="cart_quantity_up" id="cart_quantity_up_{$product.id_product}_{$product.id_product_attribute}_0_{$product.id_address_delivery|intval}" href="{$link->getPageLink('cart', true, NULL, "add&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery|intval}&token={$token_cart}")}" title="{l s='Add'}"><img src="{$img_dir}icon/quantity_up.gif" alt="{l s='Add'}" width="14" height="9" /></a><br /> {if $product.minimal_quantity < ($product.cart_quantity-$quantityDisplayed) OR $product.minimal_quantity <= 1} <a rel="nofollow" class="cart_quantity_down" id="cart_quantity_down_{$product.id_product}_{$product.id_product_attribute}_0_{$product.id_address_delivery|intval}" href="{$link->getPageLink('cart', true, NULL, "add&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery|intval}&op=down&token={$token_cart}")}" title="{l s='Subtract'}"> <img src="{$img_dir}icon/quantity_down.gif" alt="{l s='Subtract'}" width="14" height="9" /> </a> {else} <a class="cart_quantity_down" style="opacity: 0.3;" href="#" id="cart_quantity_down_{$product.id_product}_{$product.id_product_attribute}_0_{$product.id_address_delivery|intval}" title="{l s='You must purchase a minimum of %d of this product.' sprintf=$product.minimal_quantity}"> <img src="{$img_dir}icon/quantity_down.gif" width="14" height="9" alt="{l s='Subtract'}" /> </a> {/if} </div> <input type="hidden" value="{if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if}" name="quantity_{$product.id_product}_{$product.id_product_attribute}_0_{$product.id_address_delivery|intval}_hidden" /> <input size="2" type="text" autocomplete="off" class="cart_quantity_input" value="{if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)}{$customizedDatas.$productId.$productAttributeId|@count}{else}{$product.cart_quantity-$quantityDisplayed}{/if}" name="quantity_{$product.id_product}_{$product.id_product_attribute}_0_{$product.id_address_delivery|intval}" /> {/if} {/if} </td> <td class="cart_total"> <span class="price" id="total_product_price_{$product.id_product}_{$product.id_product_attribute}_{$product.id_address_delivery|intval}{if !empty($product.gift)}_gift{/if}"> {if !empty($product.gift)} <span class="gift-icon">{l s='Gift!'}</span> {else} {if $quantityDisplayed == 0 AND isset($customizedDatas.$productId.$productAttributeId)} {if !$priceDisplay}{displayPrice price=$product.total_customization_wt}{else}{displayPrice price=$product.total_customization}{/if} {else} {if !$priceDisplay}{displayPrice price=$product.total_wt}{else}{displayPrice price=$product.total}{/if} {/if} {/if} </span> </td> {if !isset($noDeleteButton) || !$noDeleteButton} <td class="cart_delete"> {if (!isset($customizedDatas.$productId.$productAttributeId) OR $quantityDisplayed) > 0 && empty($product.gift)} <div> <a rel="nofollow" class="cart_quantity_delete" id="{$product.id_product}_{$product.id_product_attribute}_0_{$product.id_address_delivery|intval}" href="{$link->getPageLink('cart', true, NULL, "delete&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery|intval}&token={$token_cart}")}">{l s='Delete'}</a> </div> {/if} </td> {/if} </tr> Link to comment Share on other sites More sharing options...
vekia Posted September 27, 2013 Share Posted September 27, 2013 ok, so your code looks well. we need to make a little workaround instead of: <a rel="nofollow" class="cart_quantity_up" id="cart_quantity_up_{$product.id_product}_{$product.id_product_attribute}_0_{$product.id_address_delivery|intval}" href="{$link->getPageLink('cart', true, NULL, "add&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery|intval}&token={$token_cart}")}" title="{l s='Add'}"><img src="{$img_dir}icon/quantity_up.gif" alt="{l s='Add'}" width="14" height="9" /></a><br /> can you try with this: {assign var="quantity_up" value=$link->getPageLink('cart', true, NULL, "add=1&id_product={$product.id_product|intval}&ipa={$product.id_product_attribute|intval}&id_address_delivery={$product.id_address_delivery|intval}&token={$token_cart}")} <a rel="nofollow" class="cart_quantity_up" id="cart_quantity_up_{$product.id_product}_{$product.id_product_attribute}_{if $quantityDisplayed > 0}nocustom{else}0{/if}_{$product.id_address_delivery|intval}" href="{$quantity_up|replace:'http':'https'|escape:'html'}" title="{l s='Add'}"><img src="{$img_dir}icon/quantity_up.gif" alt="{l s='Add'}" width="14" height="9" /></a><br /> Link to comment Share on other sites More sharing options...
vekia Posted September 27, 2013 Share Posted September 27, 2013 btw. it's only for "quantity up" button, if it will work, i will prepare modification for quantity down button, just let me know Link to comment Share on other sites More sharing options...
Pichayutm Posted September 27, 2013 Author Share Posted September 27, 2013 Unfortunately this doesn't work as you expected. Please see my attached file. Is there another way? Thank you Link to comment Share on other sites More sharing options...
vekia Posted September 27, 2013 Share Posted September 27, 2013 okay, so please remove changes, problem is somewhere else, unfortunately smething changing the https to http im going to verify your website code (now i know the url ) Link to comment Share on other sites More sharing options...
vekia Posted September 27, 2013 Share Posted September 27, 2013 hello im back i analysed code once again, i've got solution remove this: class="cart_quantity_up" <a rel="nofollow" class="cart_quantity_up" id="cart_quantity_up will work then do the same for class="cart_quantity_down" Link to comment Share on other sites More sharing options...
Pichayutm Posted October 1, 2013 Author Share Posted October 1, 2013 Hello Vekia, Thank you so much. now I can use the up and down button to change the number. However, after I run a quick test about increasing/decreasing amount there is one more problem. Buttons work fine but when I insert a direct number into the number field, says 50. The same error comes out again. I tried to delete class="cart_quantity_input" yet not the solution. Sorry to bother you once again. Cheers Link to comment Share on other sites More sharing options...
vekia Posted October 1, 2013 Share Posted October 1, 2013 so we are so close unfortunately, while im trying to open your website to test it once again - i've got 404 error :| Link to comment Share on other sites More sharing options...
Pichayutm Posted October 1, 2013 Author Share Posted October 1, 2013 That is strange. Please try again. http://store.chopanich.com Link to comment Share on other sites More sharing options...
vekia Posted October 1, 2013 Share Posted October 1, 2013 it's probably my internet connection, sometimes it works, sometimes not i will try once again Link to comment Share on other sites More sharing options...
Totti Posted October 1, 2013 Share Posted October 1, 2013 Same problem. Link to comment Share on other sites More sharing options...
vekia Posted October 1, 2013 Share Posted October 1, 2013 Same problem. you've got issues with + / - quantity buttons? Link to comment Share on other sites More sharing options...
Totti Posted October 1, 2013 Share Posted October 1, 2013 Yes. Even when recording I get a blank page. Link to comment Share on other sites More sharing options...
vekia Posted October 1, 2013 Share Posted October 1, 2013 so you've got blank page? as you can see, in this topic we solved one issue related to quantity buttons, it should works also for you. but i suppose that you've got a bit different issue mainly because you've got white page Link to comment Share on other sites More sharing options...
Totti Posted October 3, 2013 Share Posted October 3, 2013 The problem is on 'cancellation of removal and addition products with ssl enabled. Link to comment Share on other sites More sharing options...
Totti Posted October 3, 2013 Share Posted October 3, 2013 Hello Vekia, Thank you so much. now I can use the up and down button to change the number. However, after I run a quick test about increasing/decreasing amount there is one more problem. Buttons work fine but when I insert a direct number into the number field, says 50. The same error comes out again. I tried to delete class="cart_quantity_input" yet not the solution. Sorry to bother you once again. Cheers It also works to me now remained only the text box. Link to comment Share on other sites More sharing options...
vekia Posted October 3, 2013 Share Posted October 3, 2013 ok thank you for informations im going to check the input box, hope that i will solve it i will inform about any update here 1 Link to comment Share on other sites More sharing options...
Totti Posted October 3, 2013 Share Posted October 3, 2013 My website is www.supplementmuscle.com Link to comment Share on other sites More sharing options...
Pichayutm Posted October 11, 2013 Author Share Posted October 11, 2013 Any update on this matter Vekia? Link to comment Share on other sites More sharing options...
vekia Posted October 11, 2013 Share Posted October 11, 2013 you need to change base uri baseUri field, you need to change it from http to https Link to comment Share on other sites More sharing options...
vekia Posted October 11, 2013 Share Posted October 11, 2013 somewhere in header of shopping-cart.tpl file insert this code: <script> var baseUri={$content_dir}; </script> Link to comment Share on other sites More sharing options...
Pichayutm Posted October 11, 2013 Author Share Posted October 11, 2013 Here is my baseUri in shopping-cart.tpl var baseUri = 'https://store.chopanich.com/'; In shopping-cart.tpl, I have inserted this code below but it seems not working. <script>var baseUri={$content_dir};</script> Do you have any other advices? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now