Forums / All Other Contributions/Addons / Tabbed Products ''LITE'' version - Delimiter based

Tabbed Products ''LITE'' version - Delimiter based

Locked

Views: 234,294

Results 561 to 580 of 1,190
This thread is locked. New replies are disabled.
14 Sep 2006, 11:29 PM
#561
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Tabbed Products ''LITE'' version - Delimiter based

Well, I have tried to make the hieght taller but no good? What would you suggest adding or editing to make it taller to expand passed the images?

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

15 Sep 2006, 2:04 AM
#562
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: Tabbed Products ''LITE'' version - Delimiter based

knuckle-101:

Well, I have tried to make the hieght taller but no good? What would you suggest adding or editing to make it taller to expand passed the images?

ah... looks like you fixed it??

15 Sep 2006, 2:17 AM
#563
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Tabbed Products ''LITE'' version - Delimiter based

Not on the template I hoped for, cant figure it out on the other one. The other one is a friends website I just uploaded his template but no go so i just got fed up with it and switched back over to mine. Mine is a remake of the classic which this contrubition is compatiable with but I tried to compare the classic with the one I had uploaded but there is no comparision its totally written differently.

Rob

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

15 Sep 2006, 4:40 AM
#564
castylx avatar

castylx

New Zenner

Join Date:
Jul 2006
Posts:
12
Plugin Contributions:
0

Re: Tabbed Products ''LITE'' version - Delimiter based

qhome:

You would only have to edit the tpl_tabbed_products_lite.php file if you were making custom core tabs based on other modular contribs, or if you wanted a certain style ON the tabs.

The "if" statements don't bypass your tpl_product_info_display.php by default. They only check if they should bypass certain sections based on your settings in the admin configuration area. So you could add the all the if statements for your code, but set everything for the tabbed lite code to 0 and you wouldn't even know tab code was even on that page as it would just display normally. So if you have your main image stuff set up a certain way, be sure to set the "Main Image On Tabs" option to 0 and it will use your style instead of the tabbed style version.

If you run into any problems, let me know and I will see what I can do to help.

Okay so I have my products page, here is the example I want to give. In my product_info page I use a series of tables that have classes and use different settings(widths). It looks like the following (see below). You'll notice that the table uses a class called GenericBarHeading. In "non-tab" mode the GenericBarHeading is there, however when I go to tabbed mode, it disappears from the table. That's why I was asking if the tpl_tabbed_products_lite.php changes my format? Or does it simply use some tags in my products_info tab to know where to seperate the sections/tabs?

if ($products_description != '') {
if ($chkTabStart === false || $chkTabEnd === false) { // BEGIN custom tab exist check ?>
<!--bof Product description -->

<table width="585" border="0" cellspacing="0" cellpadding="0"> <!--DWLayoutTable--> <tr> <td valign="top" style="height:50 "> <table width="576" border="0" cellpadding="0" cellspacing="0" class="GenericBarHeading" style="height:27px "> <tr> <td class="text_2" style="color:#FFFFFF "><img src="images/plus_2.jpg" width="11" height="11" alt="" style="margin-left:10px; margin-right:7px ">Description </td> </tr></table> </td> </tr> <tr> <td valign="top" style="height:218 "><table width="585" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="467" valign="top" class="text_1"> <div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div> <!--eof Product description --> <?php If ($bAddToCart || $bMediaCollection || $bAdditionalImages || $bCustomersAlsoPurchased || $bCrossSell_Tab) { require($template->get_template_dir('/tpl_tabbed_products_lite.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_tabbed_products_lite.php'); } } else { require($template->get_template_dir('/tpl_tabbed_products_lite.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_tabbed_products_lite.php'); } } ?> <!-- eof: Tabbed Product Lite Modifications -->
15 Sep 2006, 10:57 AM
#565
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: Tabbed Products ''LITE'' version - Delimiter based

castylx:

Okay so I have my products page, here is the example I want to give. In my product_info page I use a series of tables that have classes and use different settings(widths). It looks like the following (see below). You'll notice that the table uses a class called GenericBarHeading. In "non-tab" mode the GenericBarHeading is there, however when I go to tabbed mode, it disappears from the table. That's why I was asking if the tpl_tabbed_products_lite.php changes my format? Or does it simply use some tags in my products_info tab to know where to seperate the sections/tabs?

if ($products_description != '') {
if ($chkTabStart === false || $chkTabEnd === false) { // BEGIN custom tab exist check ?>
<!--bof Product description -->

<table width="585" border="0" cellspacing="0" cellpadding="0"> <!--DWLayoutTable--> <tr> <td valign="top" style="height:50 "> <table width="576" border="0" cellpadding="0" cellspacing="0" class="GenericBarHeading" style="height:27px "> <tr> <td class="text_2" style="color:#FFFFFF "><img src="images/plus_2.jpg" width="11" height="11" alt="" style="margin-left:10px; margin-right:7px ">Description </td> </tr></table> </td> </tr> <tr> <td valign="top" style="height:218 "><table width="585" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="467" valign="top" class="text_1"> <div id="productDescription" class="productGeneral biggerText"><?php echo stripslashes($products_description); ?></div> <!--eof Product description --> <?php If ($bAddToCart || $bMediaCollection || $bAdditionalImages || $bCustomersAlsoPurchased || $bCrossSell_Tab) { require($template->get_template_dir('/tpl_tabbed_products_lite.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_tabbed_products_lite.php'); } } else { require($template->get_template_dir('/tpl_tabbed_products_lite.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_tabbed_products_lite.php'); } } ?> <!-- eof: Tabbed Product Lite Modifications -->

Ah, then yes you would have to make those changes to the tpl_tabbed_products file as well... it probably wouldn't be too hard. Let me know if you need help, its just a matter of copy/pasting all the table tags in between the tab divs

17 Sep 2006, 2:56 PM
#566
twirlerzmom avatar

twirlerzmom

New Zenner

Join Date:
Nov 2005
Posts:
60
Plugin Contributions:
0

Re: Tabbed Products ''LITE'' version - Delimiter based

I must have messed something up while trying to get your contrib to work. It looks great by the way, and would love to have it on my site however being new to zen I'm sure I just don't have something in the proper place. It doesn't run right out of the box for me. I have a new 1.3.5 store, no customizing done as of yet however I get this error on a few of my product pages:

Warning: main(includes/modules/tabbed_products_lite.php) [function.main]: failed to open stream: No such file or directory in /home/whippers/public_html/includes/templates/classic/templates/tpl_product_info_display.php on line 20

Warning: main(includes/modules/tabbed_products_lite.php) [function.main]: failed to open stream: No such file or directory in /home/whippers/public_html/includes/templates/classic/templates/tpl_product_info_display.php on line 20

Fatal error: main() [function.require]: Failed opening required 'includes/modules/tabbed_products_lite.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/whippers/public_html/includes/templates/classic/templates/tpl_product_info_display.php on line 20

Could you help a newbie step through the process. Your help file was great, but I was confused as to exactly where I should be uploading your files. Also, should I have uploaded complete folders or just the files inside of them? I uploaded the files to /public_html/includes/templates/classic (for the ones pointing to templates/my_template) and ran the sql patch. Is this the correct path?

Any simplified help would be appreciated.

17 Sep 2006, 3:38 PM
#567
twirlerzmom avatar

twirlerzmom

New Zenner

Join Date:
Nov 2005
Posts:
60
Plugin Contributions:
0

Re: Tabbed Products ''LITE'' version - Delimiter based

Nevermind, I found my error. I didn't have the file in the right location. Moved it and the error was resolved. Thank you for your contribution. This will be very handy!

19 Sep 2006, 1:26 AM
#568
uswebworx avatar

uswebworx

Zen Follower

Join Date:
Sep 2006
Location:
USA
Posts:
297
Plugin Contributions:
0

Re: Tabbed Products ''LITE'' version - Delimiter based

qhome:

Well do u just want all the options on one tab? Do you want them on the first tab or a second tab? By default i set all options to be stuck together with the add to cart button. You could add it to a tab, but it would still be a long list as it is now.

I want it in its own tab, doesnt matter to the customer how long it is as long as it it is more noticeable.

Sorry it took me so long to respond

Signature not needed

19 Sep 2006, 6:15 PM
#569
p_m avatar

p_m

New Zenner

Join Date:
Sep 2006
Posts:
27
Plugin Contributions:
0

Re: Tabbed Products ''LITE'' version - Delimiter based

SQL problem?

i ran the SQL patch through the zencart interface, but the only value showing up under the configuration --> tabbed products config table is "global product description tab".

so i restored my backed up database, and tried again with cut-and-paste via phpMyAdmin. same thing.

i want to have the product image, title and price display under the tabs header. as far as i can tell from reading this long thread, i need to turn on mainimageontabs. but that's not showing up.

any idea?

this is a week-old installation of zencart 1.3.5. a few mods so far, all carefully backed up.

here's one of the product pages.

19 Sep 2006, 9:34 PM
#570
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: Tabbed Products ''LITE'' version - Delimiter based

p m:

SQL problem?

i ran the SQL patch through the zencart interface, but the only value showing up under the configuration --> tabbed products config table is "global product description tab".

so i restored my backed up database, and tried again with cut-and-paste via phpMyAdmin. same thing.

i want to have the product image, title and price display under the tabs header. as far as i can tell from reading this long thread, i need to turn on mainimageontabs. but that's not showing up.

any idea?

this is a week-old installation of zencart 1.3.5. a few mods so far, all carefully backed up.

here's one of the product pages.

Hi P.M.,

Ericpeng also had this problem. And I know I've run into this in the past as well. I'm not sure exactly why it does it, but sometimes the database doesnt hold the value of last_insert_id(). A few posts up I give instructions on how to delete those records and try again but i think ericpeng had to actually edit them inside phpmy admin and change the configuration_group_id to match the latest group.

Try copy and pasting the contents of the sql file into the textarea as opposed to uploading the file. or try both and see if any of them work. Be sure to do the whole file as one step.

Anyone else with db skill know a better way of doing it?

20 Sep 2006, 3:42 AM
#571
p_m avatar

p_m

New Zenner

Join Date:
Sep 2006
Posts:
27
Plugin Contributions:
0

Re: Tabbed Products ''LITE'' version - Delimiter based

i'd already tried to restore and then retry using cut-and-paste from the SQL file, and it didn't work. based on ericpeng's experience, i went right to phpMyAdmin.

and it worked! i was surprised -- i'd never edited an SQL table before.

i'll go through the steps one by one:

  1. in phpMyAdmin --> table: configuration_group:
    Tabbed Products config (last on the list because most recently installed) has configuration_group_id of 32 (in my zencart installation -- this would vary for others)

  2. in phpMyAdmin --> table: configuration:
    the last ten items on the list (#592-601 on my set-up) list are the elements of tabbed products config. the first one, Global Product Description Tab, had the correct corresponding configuration_group_id of 32.

the others had the wrong value in that column, in a particular pattern = (n-1), where n = # on the item list in the configuration table (#592-601, as i mentioned). so Global Main Image On Tab, #593 in my table, had a configuration_group_id of 592, and Show Tab Headers when Javascript is Off, #601 had a configuration_group_id of 600.

someone who knows more about SQL than i do should be able to figure out the syntax error from that description, right?

  1. select the 9 incorrect items and edit ("change"). insert the correct corresponding value for configuration_group_id (#32 in my case) in all items and save.

  2. browse zencart admin to configuration --> tabbed products config, and there they all are...

hope that helps.

20 Sep 2006, 11:22 AM
#572
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: Tabbed Products ''LITE'' version - Delimiter based

p m:

i'd already tried to restore and then retry using cut-and-paste from the SQL file, and it didn't work. based on ericpeng's experience, i went right to phpMyAdmin.

and it worked! i was surprised -- i'd never edited an SQL table before.

i'll go through the steps one by one:

  1. in phpMyAdmin --> table: configuration_group:
    Tabbed Products config (last on the list because most recently installed) has configuration_group_id of 32 (in my zencart installation -- this would vary for others)

  2. in phpMyAdmin --> table: configuration:
    the last ten items on the list (#592-601 on my set-up) list are the elements of tabbed products config. the first one, Global Product Description Tab, had the correct corresponding configuration_group_id of 32.

the others had the wrong value in that column, in a particular pattern = (n-1), where n = # on the item list in the configuration table (#592-601, as i mentioned). so Global Main Image On Tab, #593 in my table, had a configuration_group_id of 592, and Show Tab Headers when Javascript is Off, #601 had a configuration_group_id of 600.

someone who knows more about SQL than i do should be able to figure out the syntax error from that description, right?

  1. select the 9 incorrect items and edit ("change"). insert the correct corresponding value for configuration_group_id (#32 in my case) in all items and save.

  2. browse zencart admin to configuration --> tabbed products config, and there they all are...

hope that helps.

Thank you P.M. for detailing those steps! Glad you got it working and that it was easy enough for you. I am still trying to find out a better way.

20 Sep 2006, 4:56 PM
#573
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Tabbed Products ''LITE'' version - Delimiter based

qnome,
When I turn on cross sell, it gives a parse error, and then when i turned it on before upgrading to 3.6 the product description would disappear, any idea why?

Cross sell is installed.

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

20 Sep 2006, 4:59 PM
#574
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Tabbed Products ''LITE'' version - Delimiter based

ok, parse fixed, product description still missing.

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

20 Sep 2006, 6:41 PM
#575
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Tabbed Products ''LITE'' version - Delimiter based

Q-

Pretty cool, TPL 3.6 admin edition is. Installed on a fresh ZC 1.35 and have not done much configuration or mod loading yet (IH2, Xsell or AAQ).

Any "ez" method to place product details on a tab (could be it's own tab or on same tab as product description or on same tab as add to cart) but leave main product image, product name and price above tabs?

Woody

25 Sep 2006, 4:59 PM
#576
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Tabbed Products ''LITE'' version - Delimiter based

Any idea whats causing this error?

Warning: ereg_replace(): REG_EMPTY in /home/again/public_html/includes/templates/template_default/templates/tpl_tabbed_products_lite.php on line 89

thanks

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

25 Sep 2006, 11:22 PM
#577
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: Tabbed Products ''LITE'' version - Delimiter based

knuckle-101:

Any idea whats causing this error?

Warning: ereg_replace(): REG_EMPTY in /home/again/public_html/includes/templates/template_default/templates/tpl_tabbed_products_lite.php on line 89

> 
> thanks

That is called from the Additional Images code that I replicated from zen-cart core code. Im surprised you'd ever see that error as it must pass 5 outer logic statements to even reach that. Did you edit something that would break that?
26 Sep 2006, 2:22 AM
#578
knuckle_101 avatar

knuckle_101

Totally Zenned

Join Date:
Dec 2005
Location:
Cincinnati Ohio
Posts:
1,034
Plugin Contributions:
3

Re: Tabbed Products ''LITE'' version - Delimiter based

Im sorry , forgot to repost the fix, the error was caused from a image that did not have an extension jpg, gif so on.

Anyone who uses this mod, make sure you have extensions at the end of the image you upload for the product.

Rob

PCI Certified Web Hosting - ControlScan, Security Metrics (Platinum Partner), McAfee, TrustKeeper
Business Class Web Hosting - Linux and cPanel Powered

26 Sep 2006, 3:24 AM
#579
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: Tabbed Products ''LITE'' version - Delimiter based

knuckle-101:

Im sorry , forgot to repost the fix, the error was caused from a image that did not have an extension jpg, gif so on.

Anyone who uses this mod, make sure you have extensions at the end of the image you upload for the product.

Rob

As that code is just a copy of the zen-cart core code, I'd say you might have the same problem even without this contrib for the additional images section.. but im not sure.

26 Sep 2006, 5:27 AM
#580
syntheticshield avatar

syntheticshield

New Zenner

Join Date:
Feb 2006
Posts:
48
Plugin Contributions:
0

Re: Tabbed Products ''LITE'' version - Delimiter based

All I can say is I am extremely excited by this mod. When I checked out the demo my jaw dropped because it is about as perfect fit as anyone could ask for.

However, trying to get it to work has been a different story. I tried it on my website first because I was at work at the time and wanted to see how easy it would be to implement. Everything seemed to work fine except that for the tabs all I got were links. When you clicked on the links you saw the different information like it was a tab, just no tab images.

So I get home to try it out on my test server (WAMP5) but I keep getting a parse error thats flagging the very last line in the product info display file. I'll have to dig that up later as I have been trying to work out the issues with no luck.

Ive read over the installation files but Im not getting a clear understanding of how this thing installs. In my template directory (on the web server where I had at least a partial working example) I just have the default folders, classic and template_default.

What Im not clear on I guess is do I just copy the files to the template_default folder in the given locations (css, jscript, images, etc) or do I create a new folder in that directory, for example 'mytemplate'? If so, the only way I can get ZC to recognize that that folder is there is to copy the template_info file from one of the other directories to it. Even then when I use it, the css is all gone. The only way I have been able to get it to partially work is to just copy the files to the correct directories in the template_default folder and as mentioned above I dont see the tabs, just the links.

I downloaded an additional template just to see if I could get it to work with that, but I guess Im just not grasping how the template structure works. Im obviously new to ZC but I thought I could work all this out but no joy so far. So I would appreciate any direction anyone would care to offer. This contrib seems perfect for me and would love to get it to work. I looked for an updated set of installation instructions but couldnt find anything and I read through the first few pages of this thread, but its quite extensive and I havent found anything in the search so far.