Ok this is mine:
<?php
/**
* shopping_cart header_php.php
*
* @package page
* @copyright Copyright 2003-2010 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
Type: Posts; User: harmeetsandhu
Ok this is mine:
<?php
/**
* shopping_cart header_php.php
*
* @package page
* @copyright Copyright 2003-2010 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
Chris,
i compared ur code to min and i can see u have the below part repeated twice
$attrArray[$option]['products_options_name'] = $attributes_values->fields['products_options_name'];
...
Chris,
That looks perfect but i dont understand why its not working for you. After i made this change this is what happens in my cart:
Item A (with attributes)
Item B (without attributes)
...
balticccreations,
if you can also paste the code here and i can have a look.
Will try to sort it out.
Regards
harmeet
ChrisD24,
Mine works perfect now. if you paste ur code here i can have a look and see wats going on.
Regards
Dear Baltic,
I am not sure if i got ur last post. my cart now works as i wanted it to. It shows no of products avilable if a customer adds in more products then in stock.
Let me know what...
ChrisD24,
Read the whole code properly and then decided that the following part of the code is an overkill.
I simply removed this part below :
// stock by attributes
if ( STOCK_CHECK...
Actually wrote to soon:
It doesnt work as the item i choose to test had an attribute. the one without attributes still have this problem :frusty:
will try and sort this out will let u know if...
Removing the post as the change i mentioned doesnt work.
I read before that you tried uncommenting the
/*
if (STOCK_CHECK == 'true') {
$flagStockCheck = zen_check_stock($products[$i]['id'], $products[$i]['quantity']);
if ($flagStockCheck...
Forgot to mention that ITEM B has no attribute attached to it though but if i add any other item so lets say item C with attributes.
It works as expected.
Not getting anywhere with this.
...
I changed mine to exactly as yours but i still get this again:
item A out of stock but Item B is in stock but get the out of stock message and the stock avilable is same as ITEM A.
pulling my...
Dear ChrisD24,
I am having the same problem and after making the change as yo mentioned i still have the problem can you please post the code here so i can see if i am doing everything correct: ...