cart

Min Cart issue using woocommerce + wordpress,

三世轮回 提交于 2019-12-12 03:44:02
问题 Reference to woocommerce in wordpress, I've come across an annoying bug. In the MiniCart, it shows the number of items in the cart. This works fine until I use the + or - to change the quantity. If I do that, the number just becomes a spinning wheel and the cart icon no longer shows the cart items. Now, get this: IF I delete the last item in the cart, it shows the correct number of items and shows the cart contents again. Anyone have any ideas what could be causing that? Thanks in advance for

Ajaxify shopping cart in volusion

血红的双手。 提交于 2019-12-12 03:19:56
问题 I am working on a template on Volusion, my question is, can the "add to cart" button there be ajaxified? <div id="custom-buttons"> <div id="custom-cart"> <a href="ShoppingCart.asp"> <input class="vCSS_input_addtocart" type="image" src="/v/vspfiles/templates/248/images/buttons/btn_addtocart.gif" name="btnaddtocart" alt="Add to cart" border="0" data-image-path="/v/vspfiles/templates/248/images/buttons/btn_addtocart.gif"/> </a> </div> That is the code, the button itself works, but it takes me

Update cart - mysql table update - while loop

ぃ、小莉子 提交于 2019-12-12 03:04:37
问题 new guy here! I am building a custom shopping cart driven by mysql and i am trying to update my cart item by item in terms of quantity. It seems that i am doing something wrong because when i try to update the quantity it only update the last item. I am posting the code below. Any help would be appreciated. Thanks in advance. 1.cart.php: $sql = "select * from orders"; $result = mysql_query($sql); $num = mysql_num_rows($result); echo "Στοιχεία: ".$num; ?> <form name="cart" method="post" action

Magento add product to cart from a external file doesn't work

本秂侑毒 提交于 2019-12-12 02:49:48
问题 i have a problem with Magento's addProduct() function. I have the following code: <?php // Mage init include_once '../app/Mage.php'; umask(0); Mage::init('default'); Mage::getSingleton('core/session', array('name' => 'frontend')); // Get customer session $session = Mage::getSingleton('customer/session'); // Get cart instance $cart = Mage::getSingleton('checkout/cart'); $cart->init(); // Add a product with custom options $productId = 11348; $productInstance = Mage::getModel('catalog/product')-

Decimal quantity in Codeigniter's Shopping Cart?

久未见 提交于 2019-12-12 02:07:49
问题 my client want to be able to buy products with decimal quantity, like 1.5 or 3.5, is there any way to codeigniter’s Shopping Cart class can handle this? Because right now if i try to put and decimal quantity it remover the comas, exemple, if i type 1.5, it goes as 15. Thanks for the attention EDIT: I FIXED IT BY GOING TO 'SYSTEM\LIBRARIES\CART.PHP' AND CHANGING THE LINE 161: from this: $items['qty'] = trim(preg_replace('/([^0-9])/i', '', $items['qty'])); to this: $items['qty'] = trim(preg

WooCommerce ajax cart page - Disable “remove item” (red icon “X” button)

笑着哭i 提交于 2019-12-12 01:50:00
问题 In WooCommerce ajax cart page, I have tried to detach default javascript event for removing added items (the little red icon with a cross) using: $(".remove").off("click"); Or $(".remove").unbind("click"); But it didn't work. The main reason why I am trying to do this is because, in header, I have a custom menu cart icon with product number notification on it. And I can't either get this notification number updated through WooCommerce ajax, but only refreshing page. How can I disable this

MAGENTO - Load last created Product to Cart

社会主义新天地 提交于 2019-12-12 01:37:09
问题 is it possible to load the last registered (created) Product in my Cart? How? I know it sounds crazy but i need this for one of my project. I think this is the part where the Product gets loaded: cartcontroller.php /** * Initialize product instance from request data * * @return Mage_Catalog_Model_Product || false */ protected function _initProduct() { $productId = (int) $this->getRequest()->getParam('product'); if ($productId) { $product = Mage::getSingelton('checkout/session')->getQuote()-

how to make opencart multi-store share same cart and other?

十年热恋 提交于 2019-12-12 00:23:08
问题 my website information : opencart 2.0.2 vqmod :current last. databese information: store 1 and 2 no database.its redirect default site.(with config.php) htaccess : default Store : same, store 1:same, strore 2 :same admincp: admincp server setting : Use Shared Sessions activated. (SEO URLs Active : yes) ı want to share cart and logins ı wait for this 4 month help me please 回答1: Easy Solution, OPEN FILE: system/library/session.php FIND LINE: session_set_cookie_params(0, '/'); APPEND : session

cart becomes empty in Gocart (CI)

霸气de小男生 提交于 2019-12-11 19:16:14
问题 I am using Gocart CI for my e-commerce website.I have completed my work and my website is ready but I am facing a problem and I am not able to figure it out.And this problem is so big. Problem is - Sometime my cart becomes empty when I refresh or I go for make payment.And sometimes it makes me logout so cart automatically becomes empty. I also don't know in which case it is happening.It does not happen always , it happens suddenly at any time. I thought may be it is because of any session but

Unable to add to Cart Class

纵饮孤独 提交于 2019-12-11 18:37:04
问题 I've just started playing around with the shopping cart class for CodeIgniter (version 2.1.4) and I've been following tutorials that help explain it. But for some reason I am unable to successfully add a a simple array to the cart. Here is my implementation of the cart class: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Cart extends CI_Controller { public function __construct() { parent:: __construct(); } public function index() { $nav["navigation"] = $this