X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Remove Product SKU & Pricing Information 4.2 (https://forum.x-cart.com/showthread.php?t=46950)

kalonji 04-14-2009 06:07 PM

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!

balinor 04-14-2009 06:08 PM

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!

cflsystems 04-14-2009 06:52 PM

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?

kalonji 04-14-2009 07:04 PM

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.

Victor D 04-16-2009 12:15 AM

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}


kalonji 04-25-2009 03:02 PM

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.

gb2world 04-25-2009 03:46 PM

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.

globalawakening 02-24-2011 06:44 AM

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!


All times are GMT -8. The time now is 05:05 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.