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

Remove Product SKU & Pricing Information 4.2

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-14-2009, 06:07 PM
 
kalonji kalonji is offline
 

Member
  
Join Date: Aug 2007
Posts: 15
 

Default Remove Product SKU & Pricing Information 4.2

I am wondering if anyone can help me with this.

I need to have a check box on the product admin side that allows me to enable or disable all of the following:
SKU
PRICING
Items in Stock
Options
Qtys
& Cart Buttons

for the customer view...so basically it wouldn't show any of the information under the description.

It would be nice to have the functionality where i would be able to enable or disable each one indvidually..but i only have 3 days to get this done..so 1 checkbox for the whole thing would be ideal.

I'm using 4.2Gold - Fashion Mosaic Blue.

Any help would be great!
__________________
xcart 4.2 Gold
Fashion Mosaic Blue.
Unix Hosted
Reply With Quote
  #2  
Old 04-14-2009, 06:08 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Remove Product SKU & Pricing Information 4.2

Moving to the 4.2 forum - the Completed Custom Mods forum is for completed code only. Thanks!
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-14-2009, 06:52 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Remove Product SKU & Pricing Information 4.2

Quote:
Originally Posted by kalonji
I am wondering if anyone can help me with this.

I need to have a check box on the product admin side that allows me to enable or disable all of the following:
SKU
PRICING
Items in Stock
Options
Qtys
& Cart Buttons

for the customer view...so basically it wouldn't show any of the information under the description.

It would be nice to have the functionality where i would be able to enable or disable each one indvidually..but i only have 3 days to get this done..so 1 checkbox for the whole thing would be ideal.

I'm using 4.2Gold - Fashion Mosaic Blue.

Any help would be great!

Some of them like Quantity already have checkbox in admin side - General Settings/Appearance options
As for the others - why not just comment them out in product.tpl?
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following 2 users thank cflsystems for this useful post:
kalonji (04-14-2009), SCUBA1609 (07-24-2009)
  #4  
Old 04-14-2009, 07:04 PM
 
kalonji kalonji is offline
 

Member
  
Join Date: Aug 2007
Posts: 15
 

Wink Re: Remove Product SKU & Pricing Information 4.2

Quote:
Originally Posted by cflsystems
Some of them like Quantity already have checkbox in admin side - General Settings/Appearance options
As for the others - why not just comment them out in product.tpl?


Thanks for the lead.

There are other products that will require the pricing & inventory information to shows but what you've suggested will work if I

Create another product.tpl file with the bottom part commented out - "product2.tpl"

Find someone to help me with

1) which admin file to edit to put the checkbox to switch between the 2 templates
2) What code would i need to edit in that file to make this happen.

If anyone else can help me with this - please post.
__________________
xcart 4.2 Gold
Fashion Mosaic Blue.
Unix Hosted
Reply With Quote
  #5  
Old 04-16-2009, 12:15 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Remove Product SKU & Pricing Information 4.2

You can add this option to your admin General 'Config -> Appearance' section by single MySQL query in 'Patch/Upgrade' section:
Code:
INSERT INTO `xcart_config` ( `name` , `comment` , `value` , `category` , `orderby` , `type` , `defvalue` , `variants` , `validation` ) VALUES ( 'Show_SKUnPricing', 'enable to display SKU and pricing info', 'Y', 'Appearance', '10', 'checkbox', 'Y', '', '' );

then you have to check the value $config.Appearance.Show_SKUnPricing in templates :
Code:
{if $config.Appearance.Show_SKUnPricing eq 'Y'} {include file="file1"} {else} {include file="file2"} {/if}
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #6  
Old 04-25-2009, 03:02 PM
 
kalonji kalonji is offline
 

Member
  
Join Date: Aug 2007
Posts: 15
 

Default Re: Remove Product SKU & Pricing Information 4.2

Quote:
Originally Posted by Victor D
You can add this option to your admin General 'Config -> Appearance' section by single MySQL query in 'Patch/Upgrade' section:
Code:
INSERT INTO `xcart_config` ( `name` , `comment` , `value` , `category` , `orderby` , `type` , `defvalue` , `variants` , `validation` ) VALUES ( 'Show_SKUnPricing', 'enable to display SKU and pricing info', 'Y', 'Appearance', '10', 'checkbox', 'Y', '', '' );

then you have to check the value $config.Appearance.Show_SKUnPricing in templates :
Code:
{if $config.Appearance.Show_SKUnPricing eq 'Y'} {include file="file1"} {else} {include file="file2"} {/if}

That won't work as i need this to be done at the product level..as some products will need this information displaying.
__________________
xcart 4.2 Gold
Fashion Mosaic Blue.
Unix Hosted
Reply With Quote
  #7  
Old 04-25-2009, 03:46 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Remove Product SKU & Pricing Information 4.2

One quick solution is to use a product extra field. You can search the forums for code on how to code an if/than statement based on the extra field. maybe start with this thread.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #8  
Old 02-24-2011, 06:44 AM
 
globalawakening globalawakening is offline
 

Newbie
  
Join Date: Feb 2011
Posts: 7
 

Default Re: Remove Product SKU & Pricing Information 4.2

I know this thread is a bit old, but is there any chance someone could post how to do this JUST for the SKU in 4.4.2? I would love to have this as a checkbox.

Right now I simply commented it out on the template.

thanks!
__________________
Global Awakening
Globalawakening.com
----
GlobalAwakeningStore.com
X-cart Gold 4.4.4
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:27 AM.

   

 
X-Cart forums © 2001-2020