Jump to content

Add to Cart in BO doesn't work - PS 1.5.1


Recommended Posts

this is my file /class/cart.php of v. 1.5.1 changed

 

i rewrite 3 code back from v.1.5.0.17

 

and now funcion.

 

FROM ln:444

// Build JOIN
 $sql->leftJoin('product', 'p', 'p.`id_product` = cp.`id_product`');
 $sql->innerJoin('product_shop', 'product_shop', 'product_shop.id_shop='.$id_shop);
 $sql->leftJoin('product_lang', 'pl', '
  p.`id_product` = pl.`id_product`
  AND pl.`id_lang` = '.(int)$this->id_lang.Shop::addSqlRestrictionOnLang('pl', $id_shop)
 );

 

to

// Build JOIN
 $sql->leftJoin('product', 'p', 'p.`id_product` = cp.`id_product`');
 $sql->join(Shop::addSqlAssociation('product', 'p'));
 $sql->leftJoin('product_lang', 'pl', '
  p.`id_product` = pl.`id_product`
  AND pl.`id_lang` = '.(int)$this->id_lang.Shop::addSqlRestrictionOnLang('pl')
 );

 

 

 

FROM LN466

  AND cl.`id_lang` = '.(int)$this->id_lang.Shop::addSqlRestrictionOnLang('cl', $id_shop)

 

TO

 AND cl.`id_lang` = '.(int)$this->id_lang.Shop::addSqlRestrictionOnLang('cl')

 

 

for image, go in a tabs ----> image, you have a xxxxx_default. delete "_default" a recrea a thumbs.

  • Like 4
Link to comment
Share on other sites

Hi Emecarto,

 

i dont understand what you mean by for image, go in a tabs ----> image, you have a xxxxx_default. delete "_default" a recrea a thumbs. Do you mean go to backoffice>preference>images, delete all the _delete and them regenerate the thumbnails?

Link to comment
Share on other sites

winthur someone has a problem a thumb of image.

 

my advice is not to delete "_default" bur replace all voice you have in new without "_default" .

example

 

you have , small_default, large_default ecc ecc.

add, small, large ecc ecc without "_default"

 

and after this regenerate all images thumbs.

 

u understand?

  • Like 1
Link to comment
Share on other sites

Hi emercato,

 

Just a question, is there anyway to mod the voucher auto generated to non cumulative? you came across any? and any idea which file to change? i ave been searching n searching but no luck. Hope you bring me luck! :D

 

Winthur

Link to comment
Share on other sites

Hi emercato,

 

Just a question, is there anyway to mod the voucher auto generated to non cumulative? you came across any? and any idea which file to change? i ave been searching n searching but no luck. Hope you bring me luck! :D

 

Winthur

 

if you create 2 or plus voucher there is an option for not combine beetwen them.

Link to comment
Share on other sites

  • 1 month later...

Thank you, it works!

 

I have fresh install of 1.5.1 and the cart was working fine until I got the call from one customer stating that he cannot place order. After I looked, I had over 200 abandoned carts in last week!!!

 

Saved my life.

Link to comment
Share on other sites

  • 3 months later...
  • 1 year later...
×
×
  • Create New...