If this is your first visit, check our documentation. To post, register or login.
Forums / Templates, Stylesheets, Page Layout / 1.2 template to 1.3 ?

1.2 template to 1.3 ?

Locked

Started by tinas on 28 Aug 2006, 2:54 AM · Views: 2,112

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
28 Aug 2006, 2:54 AM
#1
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

1.2 template to 1.3 ?

Can someone tell me what file should be used to replace a call to the file includes/modules/pages/product_info/main_template_vars_images.php

I am working on a conversion of a 1.2 template to 1.3 and in the product info page it errors on not finding this file.

This isn't the first time I have seen this error and I am sure it won't be the last and it would be a lot easier if I knew which file replaced this and/or how to edit that call correctly rather than sitting here having to recode the page every time I beat my head on this one.:lamo:

Thanks!

When the world gets in my face I say Have A Nice Day.

28 Aug 2006, 2:57 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: 1.2 template to 1.3 ?

There isn't an override on that one ... :cry:

Backup original and backup when done your version for future upgrades ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Aug 2006, 3:03 AM
#3
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: 1.2 template to 1.3 ?

But Linda - when I am looking at a freshly unzipped 1.3.0.2 fileset I don't even see that file included - do I simply put the prior version of this file back ?

When the world gets in my face I say Have A Nice Day.

28 Aug 2006, 3:08 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: 1.2 template to 1.3 ?

That was modularized ... :smartass:

The tpl_ calls:

require($template->get_template_dir('/tpl_modules_main_product_image.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_main_product_image.php'); ?>

Which in turn calls:

<?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?>

Easy eh? :eek:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Aug 2006, 3:19 AM
#5
merlinpa1969 avatar

merlinpa1969

Totally Zenned

Join Date:
Mar 2004
Posts:
13,031
Plugin Contributions:
4

Re: 1.2 template to 1.3 ?

can we get that in English please

Zen cart PCI compliant Hosting

28 Aug 2006, 3:21 AM
#6
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: 1.2 template to 1.3 ?

You guys are convincing me to learn php by the day:wacko:

Thanks Linda !

When the world gets in my face I say Have A Nice Day.

28 Aug 2006, 3:25 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: 1.2 template to 1.3 ?

Merlinpa1969:

can we get that in English please
ROFLMAO !!!!!! :rotflmao:

.
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.

28 Aug 2006, 3:34 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: 1.2 template to 1.3 ?

All it means is ...

There was a great big chunk of code in the core code that needed parts more "configurable" from a coding and template level ...

So we ripped it all apart and made a few cleaner peices parts so coders can go destroy one section and designers can go destroy another ... :cool:

If you start at the beginning ... you will find where a chunk of code is now in a smaller componets or modules ...

/pages/product_info used to have the file main_template_vars_images.php ...

Unfortunately that lost control for the designers and coders ... so new parts were created and cleaned up to make this easier ... it was modularized ...

/includes/templates/template_default/templates/tpl_product_info_display.php
/includes/modules/main_product_image.php
/includes/templates/template_default/templates/tpl_modules_main_product_image.php

Kinda like a marshmallow in a microwave for 15 - 20 seconds ... blew it all up ... but boy does it taste good ... er ... umm ... gosh, does that code work nicer now ... :eek:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

28 Aug 2006, 3:39 AM
#9
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: 1.2 template to 1.3 ?

This means in non coder terms - "Tina re-code that product_display page" because there isn't a way around it if you are lost :ohmy:

When the world gets in my face I say Have A Nice Day.

28 Aug 2006, 5:19 AM
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: 1.2 template to 1.3 ?

TinaS:

This means in non coder terms - "Tina re-code that product_display page"
Pretty much, yes. And just look at how much cleaner that code will be when you're done too !

.
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.

28 Aug 2006, 5:23 AM
#11
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: 1.2 template to 1.3 ?

Update - done deal and worked like a charm:yes:

Why did I ever doubt myself and try to find a work around ? I simply replaced the call for the main image in the old file with the code from template default product info page.

Of course Tina doesn't figure these things out until she's already posted and looked far less knowledgeable about zen then she really is :lamo:

When the world gets in my face I say Have A Nice Day.

30 Aug 2006, 5:42 PM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: 1.2 template to 1.3 ?

See? Brillance always prevails ... just sometimes we think we are lost, confused and totally befuddeled ... :eek:

Fortunately, now you know how to do this and can teach others what you have learned ... :smartass:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!