Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

global_product_options

 
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4
 
Thread Tools
  #1  
Old 11-14-2014, 08:27 PM
 
sinobest sinobest is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 461
 

Default global_product_options

6. In include/product_modify.php, add: if ($section == 'options') @include $xcart_dir."/include/global_product_options.php"; #BCSE Added
After: if ( file_exists($xcart_dir.'/modules/Product_Options/product_options.php') && is_readable($xcart_dir.'/modules/Product_Options/product_options.php') ) { include $xcart_dir.'/modules/Product_Options/product_options.php'; }

did not find:
Code:
if ( file_exists($xcart_dir.'/modules/Product_Options/product_options.php') && is_readable($xcart_dir.'/modules/Product_Options/product_options.php') ) { include $xcart_dir.'/modules/Product_Options/product_options.php'; }

x-cart v4.6.5 gold


8. In include/func/func.product.php, in func_delete_product(), add: #BCSE Begin if(!empty($classes)){ $global_classids = func_query_column("SELECT classid FROM $sql_tbl[classes] WHERE classid IN ('".implode("','", $classes)."') and global = 'Y'"); if(!empty($global_classids)) foreach($global_classids as $cid){ $class_name = func_query_first_cell("select class from $sql_tbl[classes] where classid = '$cid'"); db_query("update $sql_tbl[classes] set global = 'Y' where class = '".addslashes($class_name)."' and global = 'C' limit 1"); } } #BCSE End
Before: db_query("DELETE FROM $sql_tbl[classes] where productid='$productid'");
did not find:
Code:
func_delete_product()


Do this step only if the line <li>Custom Modules doesn't exist
2a. In skin/common_files/single/menu_box.tpl and skin/common_files/admin/menu_box.tpl, add: <li>Custom Modules <div> </div> </li>
After: {include file="admin/help.tpl"}
did not find:
Code:
{include file="admin/help.tpl"}

2b. In skin/common_files/single/menu_box.tpl and skin/common_files/admin/menu_box.tpl, add: <a href="{$catalogs.admin}/add_global_options.php">{$lng.lbl_global_product_o ptions}</a>{*BCSE Added*}
After: <li>Custom Modules <div>
did not find:
Code:
<li>Custom Modules <div>
__________________
X-Cart Version: 4.7.12 GOLD
www.cheapglasses123.com prescription glasses online at discounted prices.
prescriptionglassesusa.com
www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS
Reply With Quote
  #2  
Old 11-14-2014, 09:10 PM
 
sinobest sinobest is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 461
 

Default Re: global_product_options

i have test x-cart gold plus, v4.6.5, same issues.
__________________
X-Cart Version: 4.7.12 GOLD
www.cheapglasses123.com prescription glasses online at discounted prices.
prescriptionglassesusa.com
www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS
Reply With Quote
  #3  
Old 11-15-2014, 06:53 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: global_product_options

Just insert the <li>Custom Modules</li> if it does not exist.

Put it at the bottom, after the other <li> elements but before the closing </ul>
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #4  
Old 11-15-2014, 07:16 AM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,063
 

Default Re: global_product_options

Please reserve critical tickets to site down issues. Gary will help you when he's in next. He works weekends sometimes.

Thank you,

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
  #5  
Old 11-20-2014, 08:21 PM
 
sinobest sinobest is offline
 

X-Adept
  
Join Date: Nov 2009
Posts: 461
 

Default Re: global_product_options

have installed successfully.
found another issue. how to let the same option_name has the same optionid?

i have checked xcart_product_options_lng from phpmyadmin. found as we add products, even we choose global product options, optionid still increase.

our aim is to let the same option name has the same optionid. how to global_product_options meets this please?

if global_product_options can let the same option_name has the same optionid, we plan to let the common option group written in hard code in an html page; in current situration, we can not do so, because optionid is increasing as we add new products.

tks.
__________________
X-Cart Version: 4.7.12 GOLD
www.cheapglasses123.com prescription glasses online at discounted prices.
prescriptionglassesusa.com
www.loupesusa.com X-Cart Version: 4.7.11 GOLD PLUS
Reply With Quote
  #6  
Old 11-23-2014, 03:37 PM
  BCSE's Avatar 
BCSE BCSE is offline
 

X-Guru
  
Join Date: Apr 2003
Location: Ohio - bcsengineering.com
Posts: 3,063
 

Default Re: global_product_options

You will have to test on option_name or some other field. Optionid will increase always.

Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002!

We support X-cart versions 3.x through 5.x!

Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more!


Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com

Please E-Mail us for questions/support!
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Third Party Add-Ons for X-Cart 4



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 09:00 PM.

   

 
X-Cart forums © 2001-2020