Weekly Freebie #3: Grab 3 Premium Joomla Templates For FREE
0
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00

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 6 years 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 6 years ago #20801

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.38 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.
Weekly Freebie #3: Grab 3 Premium Joomla Templates For FREE

Suggested Posts

(/)
Result not found!

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
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes