Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

quantity wrong for product with characteristic + sometimes not updating
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: quantity wrong for product with characteristic + sometimes not updating

quantity wrong for product with characteristic + sometimes not updating 10 years, 2 months ago #20648

Hi,

I have the same problem as the earlier poster with products with characteristics being listed and counted twice in the cart.

Also within several categories i have, the products with characteristics, when added to the cart do not update the cart at all! It still says the cart is empty.

The standard hikashop mini and large carts work as they should.

Thanks.

Re: quantity wrong for product with characteristic + sometimes not updating 10 years, 2 months ago #20801

  • SA Thuy
Dear David Mayne

Please try go to file your_site/modules/mod_sj_hk_minicart_pro/core/helper.php and find code:
foreach($products as $product){

$Productclass->addAlias($product);
$config = hikashop_config();
$pathway_sef_name = $config->get('pathway_sef_name','category_pathway');
$category_pathway = JRequest::getInt($pathway_sef_name,0);
$product->id = $product->product_id;
$image = self::_getProductImage($product->product_id);
$product->title = $product->product_name;
$product->description = self::_cleanText($product->product_description);
$product->_image = $image ? $image : '';
$product->link = hikashop_completeLink('product&task=show&cid='.$product->product_id.'&name='.$product->alias.$url_itemid.$category_pathway);
$product->_price = self::_processPrice($product);

}

return $_cart;


=> Change code following:
foreach($products as $i=> $product){

$Productclass->addAlias($product);
$config = hikashop_config();
$pathway_sef_name = $config->get('pathway_sef_name','category_pathway');
$category_pathway = JRequest::getInt($pathway_sef_name,0);
$product->id = $product->product_id;
$image = self::_getProductImage($product->product_id);
$product->title = $product->product_name;
$product->description = self::_cleanText($product->product_description);
$product->_image = $image ? $image : '';
$product->link = hikashop_completeLink('product&task=show&cid='.$product->product_id.'&name='.$product->alias.$url_itemid.$category_pathway);
$product->_price = self::_processPrice($product);
if($products[$i]->cart_product_quantity <= 0){

unset($products[$i]);
}

}
$_cart->products = $products;

return $_cart;


Thanks
  • Page:
  • 1
Time to create page: 0.19 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes