And what happens if you use this:
Code:$sku = '89147';
And what happens if you use this:
Code:$sku = '89147';
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Hello Dr Byte,
That still didn't work which surprised me so i looked hard at the code and realized i have the if/else backwards. So i switched that and changed the coding back to $sku = $products_model; and it worked perfectly. Too many hours for such a stupid mistake on my part. Thanks so much for your help. You are great.
Josh
Hi,
Please can anybody say me where to place $sku = $products_model; in tpl_product_info_display.php. So that in Place of Model it shows SKU.
I need the complete replacement code line.
thanks.
~ Time
No code edit here. This is a LANGUAGE FILE change.
The word "model" appears in about 17 language php files, and to find all references in language files, use the DEVELOPER TOOLKIT under ADMIN>>>TOOLS.
Then you change, FOR EXAMPLE:
toPHP Code:define('TEXT_PRODUCT_MODEL', 'Model: ');
PHP Code:define('TEXT_PRODUCT_MODEL', 'SKU: ');
Hi fairestcape,
Wow that's fast reply and thank you.
If it can be done just by using Language files editing then what joshscott31 is trying to do by by so much of php code puzzle. Not able to understand.
Do I have to edit all language files, template override English file will not do alone.
~ Time
To be honest, I have no idea what Josh is up to, but if Dr Byte is devoting so much energy to this, then it must be quite important!
However, we'll let them get on with it as they seem to know what they are doing.
As regards MODEL to SKU...
There are many instances where the language "text string" Model occurs.
It occurs in search results, product info pages, shopping cart displays, product listing headings... etc.
I change all instances in my webshop to Product Code, because I don't like Model any more than you do.
I haven't had to do it for some time, but at last count, there are 17 references to Model in the language files. Some are in places like product_music_info.php, so if you are not using this product type, you can ignore it.
But what you don't want, for example, is a Table Header or Search Result to say "Model", and then other references to say "SKU". This will confuse customers.