Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Update_quantity & change sort order of categories & products


ramo786

Recommended Posts

i was trying to add this contribution but when i try to edit the catalog part for this contribution, i get stuck

 

when it comes to these steps

 

catalog\includes\modules\product_listing.php

Line 64

 

Replace

if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {

 

with

//sort order & quantity change

if ($column_list[$col] == 'PRODUCT_LIST_SORT_ORDER'){break;}

if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') && ($column_list[$col] != 'PRODUCT_LIST_MULTIPLE')) {

// if ( ($column_list[$col] != 'PRODUCT_LIST_BUY_NOW') && ($column_list[$col] != 'PRODUCT_LIST_IMAGE') ) {

//end sort order & quantity change

 

------------------------------------------------------------------------------------------------------------------------

Line 95

 

Before

 

switch ($column_list[$col]) {

case 'PRODUCT_LIST_MODEL':

 

Add

 

//sort order & quantity change

if ($column_list[$col] == 'PRODUCT_LIST_SORT_ORDER'){break;}

//end sort order & quantity change

 

================================================================================

========================================

 

 

I cant find any the codes already in the files. SO i don't know how to edit them. I did everything else this si the only part that is hard for me. Please need major help. thanks in advance

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...