cart

(Django, Satchmo) Developing products/cart line items with personalized fields/properties

一笑奈何 提交于 2019-12-25 01:08:56
问题 I'm looking into Python/Django to evaluate suitable e-commerce solution. For now Satchmo package seems to deliver solution to satfy most of my needs with Subscription product type. However, I still have home requirements to meet and I ended wondering that is Satchmo or some other cart/commerce package suitable for personalized products? I need the user to fill in some "personal details" regarding Subscription since Subscription products/orders can be assigned to other users and/or to non-user

Disable specific cart item quantity fields based on WooCommerce product category

廉价感情. 提交于 2019-12-24 17:52:30
问题 In woocommerce I am using Hide “remove item” from cart for WooCommerce product category answer code and I would like to disable the cart quantity field too, avoiding customer to change the item quantity to zero. Is that possible? Any track on this will be appreciated. 回答1: The following code will remove the "quantity field" from cart for items from a specific product category (that you will define in the 2nd function): // Custom conditional function that checks for categories (including

Opencart Multi-store 1.5.6 shared session

て烟熏妆下的殇ゞ 提交于 2019-12-24 17:05:11
问题 I've got a opencart multi-store, though the shared session doesn't work for me. When i put a item in my cart from store1.com it will not appear on store2.com... My multistore looks like this, so with different domains. store1.com store2.com In my main store1.com header its got differtent iframe's: <iframe src="http://www.store1.com/catalog/view/javascript/crossdomain.php?session_id=95e5c425bc5df1ecff3406eb0f587018" style="display: none;"></iframe> <iframe src="http://www.store2.com/catalog

Opencart Multi-store 1.5.6 shared session

匆匆过客 提交于 2019-12-24 17:05:10
问题 I've got a opencart multi-store, though the shared session doesn't work for me. When i put a item in my cart from store1.com it will not appear on store2.com... My multistore looks like this, so with different domains. store1.com store2.com In my main store1.com header its got differtent iframe's: <iframe src="http://www.store1.com/catalog/view/javascript/crossdomain.php?session_id=95e5c425bc5df1ecff3406eb0f587018" style="display: none;"></iframe> <iframe src="http://www.store2.com/catalog

Magento - remove one quantity from cart

↘锁芯ラ 提交于 2019-12-24 14:34:18
问题 I am trying to remove just one qty from my cart rather than all, but to no avail. Can anybody help? Here is the code I have got so far... require_once 'app/Mage.php'; Mage::app("default"); Mage::getSingleton("core/session", array("name" => "frontend")); $session = Mage::getSingleton("customer/session"); $yourProId = $_POST['prodID']; $qty = 1; foreach (Mage::getSingleton('checkout/session')->getQuote()->getItemsCollection() as $item) { if ($yourProId == $item->getProductId()) { Mage:

Live update product category cart item count without reloading in Woocommerce

孤人 提交于 2019-12-24 11:44:48
问题 I created a shortcode that counts the quantity of products belonging to the '72' product category, that are added to the cart. I am using the custom conditional function has_product_category() from this answer thread: Set item quantity to multiples of “x” for products in a specific category in Woocommerce Here is my code: function cat_cart_count_bottiglie() { $bottiglie = 0; // Iterating through each cart item foreach ( WC()->cart->get_cart() as $cart_item ) { if ( has_product_category( $cart

Quantity discount on 2nd item only in Woocommerce

僤鯓⒐⒋嵵緔 提交于 2019-12-24 11:23:25
问题 I want to achieve a global discount for all products but only for the 2nd product item. What do I mean? If the customer buys "Jacket" no discount is given. Customer buys two of the "Jacket" product. 20% discount is given on the second "Jacket". Customer buys five of the "Jacket" product. Still only 20% discount on the 2nd "Jacket". It should work for all both simple and variable products. I managed to figure this much out and I'm asking for help with how to make the discount apply to only the

Display product attributes for variations on cart page in woocommerce 3

荒凉一梦 提交于 2019-12-24 10:46:07
问题 How do I display a product category and it's variations on the Cart page? It's about a Variable Product with variations. Attributes are included for variations. There are no additional attributes (not set for variations). 回答1: To display the product attributes for variations there is 2 ways: See this related answer for that: Product variations attributes as cart items shows up differently in WooCommerce To display the product category you could use this hooked function: add_filter(

Shopping cart in jquery with php and session

白昼怎懂夜的黑 提交于 2019-12-24 09:57:53
问题 Good day! I'm now learning this jquery by creating a basic shopping cart were as add to cart buttons, remove items and clear buttons works in jquery. The function is to save the added items on session and can remove and clear also by jquery. I have an idea now on how the jquery works on adding the items. But not on removing a single item or to clear all of them on the cart. Any help, suggestion are much appreciated. thanks... :D Here is the code I have done so far on shopping cart. This is in

If WooCommerce Cart items are on backorder do not apply coupon

∥☆過路亽.° 提交于 2019-12-24 09:54:03
问题 So far this is what I've got: add_filter('woocommerce_coupon_is_valid','coupon_always_valid',99,2); function coupon_always_valid($valid, $coupon){ global $woocommerce; $valid = true; foreach ( $woocommerce->cart->get_cart() as $cart_item_key => $values ) { // if($values['data']->backorders_allowed()){ //check if backorders are allowed on this product // get the stock quantity - returns the available amount number $stock_info = $values['data']->get_stock_quantity(); if($stock_info < 1){ $vaild