shopping-cart

Cart products dissapear on refresh page Prestashop

好久不见. 提交于 2019-12-08 05:15:46
问题 since some weeks I have a problem with my Prestashop 1.4.0.12 When I add a product to cart, ajax works correctly and add the product very well. But, if I change page, or sometimes adding a product, the cart change deleting all products on refresh a new page. Sometimes I can move within some pages, but dissapears the products of the cart and later if I have a new cart returns to the old cart. Anybody knows about it? I think that the problem is on id_guest but I need to know if anyone have some

Session time out with Timer

我怕爱的太早我们不能终老 提交于 2019-12-08 03:43:47
问题 I want to time out the session with timer, I am implementing a ecommerce project, where I required when user add first product in the cart a timer will start and user add more products in the cart but user did not checkout the cart product within a specific time the cart session is timeout(cart empty). How can acchive this. 回答1: To actually answer the question: On server side, when a product is added to the cart save the date time stamp with it. Whenever any page is loaded, check the date

WooCommerce Student Discount

时光总嘲笑我的痴心妄想 提交于 2019-12-08 03:30:19
问题 I need to create a coupon in WooCommerce that will only work if the user has an email which ends in .ac.uk . For example student.name@uwl.ac.uk or teacher@kings.ac.uk . The discount would be 10% off the total shopping basket. I can't find any solutions online or any plugins which could help. Any ideas? Thanks. 回答1: You can use this Auto apply Discount Coupon to Customer’s Purchase function with the right conditionals (user email finishing by ac.uk ): add_action('woocommerce_before_cart_table'

Cart products dissapear on refresh page Prestashop

淺唱寂寞╮ 提交于 2019-12-07 07:42:26
since some weeks I have a problem with my Prestashop 1.4.0.12 When I add a product to cart, ajax works correctly and add the product very well. But, if I change page, or sometimes adding a product, the cart change deleting all products on refresh a new page. Sometimes I can move within some pages, but dissapears the products of the cart and later if I have a new cart returns to the old cart. Anybody knows about it? I think that the problem is on id_guest but I need to know if anyone have some solution Thanks! The problem is on Domain Name, that site have 3 domains, and there are a function on

Change display order of checkout buttons in Magento

天大地大妈咪最大 提交于 2019-12-07 07:33:41
问题 I need to place checkout buttons in shopping cart page in order 1) Proceed to checkout 2) Google checkout 3) Paypal Express checkout.xml inside <checkout_cart_index> <block type="core/text_list" name="checkout.cart.methods" as="methods" translate="label"> <label>Payment Methods After Checkout Button</label> <block type="checkout/onepage_link" name="checkout.cart.methods.onepage" as="testproceed" after="-" template="checkout/onepage/link.phtml"/> <block type="checkout/multishipping_link" name=

Opencart: How to relate product options (like size and color)?

三世轮回 提交于 2019-12-06 16:49:31
I'm using opencart version 1.5.5.1 for our website. I need to add more than one option for products. For example: I need to show shirts of sizes- Large/Medium/Small and colors White/Black/Blue/Red/Green etc. By default opencart allows us to add separate quantities for each color and size. How can I mention that we've 5 Large Shirts of Blue Color, 3 Medium Shirts of White Color etc. ? Please help. Thanks in Advance! I guess this would only be possible if You create an options for size x color combinations only. Customer then would have to pick the desired size and color in one option, like: S,

Open Source client-side Shopping Cart - jQuery/Cookies

随声附和 提交于 2019-12-06 16:16:42
问题 I am looking to implement something that appears to have "shopping cart" functionality, but is completely on the client-side. I can do this using jQuery and cookies (and I event found this Smart Cart 2 plugin for helping with a large part of it), but before I build it - Does anyone know of an existing solution that is completely client-side, and uses javascript (preferrably jQuery) and cookies? Also, other than the small percentage of users whose browsers don't support javascript and/or

Transferring order values from php shopping cart to MySQL

爱⌒轻易说出口 提交于 2019-12-06 15:52:05
问题 I am trying to setup a “checkout/order” page within a site in which logged in users earn points/credits. Once they earn a certain amount of these points they can then go to a shopping cart and pay with these points only. (No money changes hands, so no paypal/checkout/shipping/taxes etc are involved). I have done a 'shopping cart' page and 'view cart' page (view cart code is on this page), which works fine thanks to Steve and KMK ;). I have two tables on my MySQL database, 'orders' (which has

Paypal Express Checkout: Mixed Recurring and Non-Recurring Items

血红的双手。 提交于 2019-12-06 11:12:46
问题 I am working on our company cart which contains products that people can either subscribe to or just buy outright. The problem is that it should require customers to add both types in a single order. Question: It is possible to to tell Paypal to charge selected items as subscription and the others as one-time payments? Thanks in advance. 回答1: According to the advanced features documentation page 47/48, this is possible by calling SetExpressCheckout with the recurring products as

How to remove the single cart item using codeigniter cart class?

爱⌒轻易说出口 提交于 2019-12-06 07:21:56
问题 I am using codeigniter cart class for my shopping cart project. I have number of items on the cart. Now I do have cart row id. Now what exactly i need to do is, need to remove the particular item from the cart not all the contents(Destroying cart). $cartcontents = $this->cart->product_options($rowid); and unseting all contents. but doesn't works out. Please do help you anybody have an idea. Thank You. 回答1: $data = array( 'rowid' => '30ef30b64204a3088a26bc2e6ecf7602', 'qty' => 0 ); $this->cart