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

Tabbed Products ''LITE'' version - Delimiter based

Locked

Views: 234,294

Results 501 to 520 of 1,190
This thread is locked. New replies are disabled.
7 Sep 2006, 5:27 PM
#501
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,685
Plugin Contributions:
0

Tabbed Products ''LITE'' version - Delimiter based

:thumbsup: :thumbsup:

Now you are really understanding the power of Zen.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

7 Sep 2006, 7:10 PM
#503
qhome avatar

qhome

Totally Zenned

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

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

Well.. I'm stumped..

I can't seem to figure out how to pass all the proper variables for the product on page load, or know if it is even possible.

The Ask A Question seems to use a url to pass the values from that page to the contact form to pre-fill in the values. But I'm not sure that it is possible to know the values until after the page loads, so I don't think I can use that as a tab.

The Reviews form seems to also pass the product_id and I don't know how to pass that on page load. So it shows the review window, but it says there are no reviews when there should be.

And The Tell a friend has the same problem, plus it seems to skip the language file load. It shows a form and some "TEXT_BLAH_BLAH". Another problem there is that Tell a Friend would normally require you to login so it would defeat the purpose as the login would take you to another screen.


The good news about the separate files still holds true though :) I am porting it over to the music product type now and so far it seems super easy to do. I also have the separate language file working fine. So unless someone else has some ideas on how to get the other 3 features working, I will have to leave this as is.

I will upload a new version later tomorrow most likely.

9 Sep 2006, 1:00 AM
#504
qhome avatar

qhome

Totally Zenned

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

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

Ok. Here is the first release of the new "genius" version of Tabbed Product Lite :p

Some Highlights:

  • Massive restructuring. All tab code is separated from the rest of the template file. This makes it much easier to merge the tabs into existing custom product templates and make new custom changes without a lot of confusing code surrounding the core code.
  • Tab code is own template file now: /includes/templates/your_template/templates/tpl_tabbed_products_lite.php
  • Tab config is own module file now: /includes/modules/tabbed_products_lite.php
  • Original tpl_product_display_info.php now is much smaller, close to the default core size with minor modifications.
  • Added language files. Now you can have different languages for your tabs.
  • Ported the Product Types: Product, Product Music, and Product Free Shipping to a tabbed version and included the files. Now you can use the same tabs module and template with any of the included Product Types
  • Added a tab for Media Manager/Collection for the music tab only. Code checks to ensure that only the music product type offers that as a tab
  • Completely cleaned up the code and properly tabbed it all now that it is much easier to discern.
  • Created easy to follow instructions for merging tab code into existing custom templates.
  • Revamped the Add your Own Tab instructions.

I attempted to include Tell a friend, Ask a Question, and Reviews on their own tabs but there is some params and prerequisites for them and I'm not really sure how to do it.

9 Sep 2006, 1:29 AM
#505
qhome avatar

qhome

Totally Zenned

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

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

I should also mention that by upgrading, if you haven't changed the default layout, nothing should change for you. Even though everything is in a different file, it should be transparent from a customer store view standpoint.

Plus keep in mind for those of you who finally have the past version finally happy the way you want it... it is quite easy to change it all around for this version.

As always, Im here to help :)

9 Sep 2006, 10:05 AM
#506
remzi avatar

remzi

New Zenner

Join Date:
Aug 2006
Location:
Istanbul
Posts:
31
Plugin Contributions:
0

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

qhome:

I should also mention that by upgrading, if you haven't changed the default layout, nothing should change for you. Even though everything is in a different file, it should be transparent from a customer store view standpoint.

Plus keep in mind for those of you who finally have the past version finally happy the way you want it... it is quite easy to change it all around for this version.

As always, Im here to help :)


QHOME,
Thank you for this is aamazing tool. I uploaded this new version to my site. It's running very vell. Specially for the the multilanguage possibility I will say : THANK YOU. GREAT JOB. Have a nive weekend.
Remzi:smile:

9 Sep 2006, 2:23 PM
#507
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,453
Plugin Contributions:
4

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

Hi qHome,

I installed new version and having following issues:
1-The model, weight (details) not showing,
2-I can't get the AaQ buttong to show up

Apparently you tried to move the details to another position (other than below the product name/price) and they aren't showing for some reason.

IDEASLady
IDEAS Creative Studio

Your image... our business!

9 Sep 2006, 2:53 PM
#508
qhome avatar

qhome

Totally Zenned

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

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

ideasgirl:

Hi qHome,

I installed new version and having following issues:
1-The model, weight (details) not showing,
2-I can't get the AaQ buttong to show up

Apparently you tried to move the details to another position (other than below the product name/price) and they aren't showing for some reason.

Ya, in this version I left all my customizations out of it and used the default zencart core template. so the model/weight/stock thing is back where it was on fresh zc install. I was going to include my version as well but wasn't sure if people liked it that way so I was leaving it open for decision. I will put the other version back in the zip when I upload it to the downloads area.

Tho I realize now that if you have the add to cart button set to be on tabs, and by default, I assume that the product details is above tabs. But since I went back to the default display template, the add to cart button is a combination of Addto cart, prod details, qty discounts, and attribs. I guess its just better off if I leave my version or separate the add to cart button and product details again.

Where are you putting the AAQ link at? be sure it is outside of the <!-- Tabbed products lite modification --> tags if you are putting it near the add to cart button off tabs, be sure you have the add to cart button set to be off tabs, otherwise if you want to add it on tabs, you will have to edit the tpl_tabbed_products_lite.php file to add it into the tabbed area. Got a link?

9 Sep 2006, 2:56 PM
#509
michaelhl avatar

michaelhl

New Zenner

Join Date:
Oct 2005
Location:
Germany
Posts:
60
Plugin Contributions:
0

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

Hi qhome,

really a great work, you are genial.

But one thing I not really miss, but it can make it better at all. It will be a switch (e.g. a checkbox) on the product.php in admin-area to choose if this article use tabs or not. But I think this is not to realize without doing changes to the core-code.
Also useable may be buttons on the html-editor to insert the soft-tabs.

But now, it a fine contribution and I will use it. THANK YOU.
Michael

9 Sep 2006, 2:58 PM
#510
qhome avatar

qhome

Totally Zenned

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

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

michaelhl:

Hi qhome,

really a great work, you are genial.

But one thing I not really miss, but it can make it better at all. It will be a switch (e.g. a checkbox) on the product.php in admin-area to choose if this article use tabs or not. But I think this is not to realize without doing changes to the core-code.
Also useable may be buttons on the html-editor to insert the soft-tabs.

But now, it a fine contribution and I will use it. THANK YOU.
Michael

:) ya every change i make I keep telling myself "just put this in the admin to make it easier". And now that I have it separate, I can easily put some logic in there to check if the database is set to true for displaying tabs. so I think that will be the next step.

9 Sep 2006, 3:03 PM
#511
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,453
Plugin Contributions:
4

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

The thing is they aren't showing at all. I also just tried your instructions to edit the template and it gives an error as well (even from the original 1.3.5 template code) I tried it twice...

I'm inserting the AaQ code just like on my previous version (no, not between any tabbed code or loops). But I'm guessing has to do with the details not showing up as well. :unsure:

I will love to have the template organized like you did before. :yes:

IDEASLady
IDEAS Creative Studio

Your image... our business!

9 Sep 2006, 5:46 PM
#512
qhome avatar

qhome

Totally Zenned

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

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

ideasgirl:

The thing is they aren't showing at all. I also just tried your instructions to edit the template and it gives an error as well (even from the original 1.3.5 template code) I tried it twice...

I'm inserting the AaQ code just like on my previous version (no, not between any tabbed code or loops). But I'm guessing has to do with the details not showing up as well. :unsure:

I will love to have the template organized like you did before. :yes:

Ok, well I would advise that you don't follow the Ask A Question directions because the author bundled the AAQ button with the Product Details. If you have product details disabled, then it will also disable the AAQ button.

However, if you are sure you don't have the Product details disabled, You should see them fine. Regardless, I have updated my demo site with the custom version I made that puts the Product Details at the top by the main image.

I've attached is my custom template files with the product details up by the main image and the ask a question actually ABOVE the product details as its own <div>. I also will show the code changes here.

In the tpl_product_display_info.php file (and the music and freeship ones as well)

FIND:

<!--eof free ship icon  -->

RIGHT AFTER THAT PASTE:

<!-- bof AAQ Link -->
<div id="productQuestions" class="biggerText">
<b><?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id']) . '">' . ASK_A_QUESTION . '</a>'; ?></b>
</div>
<!-- eof AAQ Link -->

<!--bof Product details list  -->
    <?php 
    if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
      <ul id="productDetailsList" class="floatingBox back">
      <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
      <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT .  $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>'  : '') . "\n"; ?>
      <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>'  : '') . "\n"; ?>
      <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
      </ul>
    <?php }
    ?>
    <!--eof Product details list -->
  <br class="clearBoth" />
  <div></div>

Then on Line 165 Find & Delete:

<!--bof Product details list  -->
<?php if ( (($flag_show_product_info_model == 1 and $products_model != '') or ($flag_show_product_info_weight == 1 and $products_weight !=0) or ($flag_show_product_info_quantity == 1) or ($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name))) ) { ?>
<ul id="productDetailsList" class="floatingBox back">
  <?php echo (($flag_show_product_info_model == 1 and $products_model !='') ? '<li>' . TEXT_PRODUCT_MODEL . $products_model . '</li>' : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_weight == 1 and $products_weight !=0) ? '<li>' . TEXT_PRODUCT_WEIGHT .  $products_weight . TEXT_PRODUCT_WEIGHT_UNIT . '</li>'  : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_quantity == 1) ? '<li>' . $products_quantity . TEXT_PRODUCT_QUANTITY . '</li>'  : '') . "\n"; ?>
  <?php echo (($flag_show_product_info_manufacturer == 1 and !empty($manufacturers_name)) ? '<li>' . TEXT_PRODUCT_MANUFACTURER . $manufacturers_name . '</li>' : '') . "\n"; ?>
</ul>
<br class="clearBoth" />
<?php
  }
?>
<!--eof Product details list -->

THEN in the tpl_tabbed_products_lite.php file

FIND:

<!--eof free ship icon  -->

RIGHT AFTER THAT PASTE:

        <!-- bof AAQ Link -->
        <div id="productQuestions" class="biggerText">
        <b><?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id']) . '">' . ASK_A_QUESTION . '</a>'; ?></b>
        </div>
        <!-- eof AAQ Link -->

Thats it.

The location I put the AAQ link in works good for both text link and image button link.

9 Sep 2006, 6:57 PM
#513
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,453
Plugin Contributions:
4

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

Ok, well I would advise that you don't follow the Ask A Question directions because the author bundled the AAQ button with the Product Details. If you have product details disabled, then it will also disable the AAQ button.
I'm not using swguy's AaQ module, I'm using Marg's one (so I just have to insert the code). Your new template it's perfect, I just took off your AaQ code and added mine where I wanted it. Worked perfect. Thanks for your great support and genious contribution. :smartass:

BTW, you DO need to take a look to your latest template code, because these aren't showing at all, and when following instructions from your "How To Port Your Template" file, gives an error.

IDEASLady
IDEAS Creative Studio

Your image... our business!

9 Sep 2006, 7:25 PM
#514
qhome avatar

qhome

Totally Zenned

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

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

ideasgirl:

BTW, you DO need to take a look to your latest template code, because these aren't showing at all, and when following instructions from your "How To Port Your Template" file, gives an error.

When you say "These" what are you referring to? the Product Details stuff?

I'll take another look, but I was pretty sure my step by step guide was working. I used it to make the freeshipping and music templates so I figured going through it a few times would have caught any problems but maybe there was something I didnt think of.

9 Sep 2006, 7:36 PM
#515
qhome avatar

qhome

Totally Zenned

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

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

qhome:

When you say "These" what are you referring to? the Product Details stuff?

I'll take another look, but I was pretty sure my step by step guide was working. I used it to make the freeshipping and music templates so I figured going through it a few times would have caught any problems but maybe there was something I didnt think of.

If you are referring to the product details, thats because like i said above, my version assumed that they were always off the tabs.. but when i went back to default zc core product info file, they were within the add to cart chack range. So if you had add to cart on your tabs, you wouldn't have them under the tabs.. and that inludes add to cart, attribs, qty discount, and prod details. However, the tabbed data only included Add to cart, attribs, and qty discount.. No more prod details since 2.x.

So yea there is a slight problem there whether or not to just force people to have the prod details up top which IMO looks best. Or make it a separate call so people can still leave them at the bottom. It might be necessary to do that if people want to merge the tabs into their custom product info and leave the prod details where they are by default. Maybe I'll just make them separate.

9 Sep 2006, 7:47 PM
#516
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,453
Plugin Contributions:
4

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

When you say "These" what are you referring to? the Product Details stuff?
Yes, product details list (model, weight, manufacturer, etc.)

I'll take another look, but I was pretty sure my step by step guide was working. I used it to make the freeshipping and music templates so I figured going through it a few times would have caught any problems but maybe there was something I didnt think of.
Yes, I did it twice from clean/unedited 1.3.5 template_default file, without adding the AaQ code, and was giving the error.
If you are referring to the product details, thats because like i said above, my version assumed that they were always off the tabs.. but when i went back to default zc core product info file, they were within the add to cart chack range.
Yes, you are right. (Maybe this is causing the error on you step by step edit?)
So yea there is a slight problem there whether or not to just force people to have the prod details up top which IMO looks best.
IMO too.

IDEASLady
IDEAS Creative Studio

Your image... our business!

9 Sep 2006, 8:02 PM
#517
qhome avatar

qhome

Totally Zenned

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

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

ok.. just tested the HOW TO PORT file again.. and you are kraaaaazy :P

It ports it perfectly.. still doesn't show the product details of course, but it doesnt give any errors at all.

One question.. are you copying the

=========================

part too? cuz u should NOT be. I was using those as dividers in that file only. That would cause a php error if u were.

No matter.. i think i will just update it to force people to move the product details stuff up top there. And maybe Ill put the PORT document into Word format so I can color code what you should and shouldn't copy so there are no extra parts being copied.

9 Sep 2006, 9:31 PM
#518
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,453
Plugin Contributions:
4

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

One question.. are you copying the
:laugh: No, I'm not.
and you are kraaaaazy
:unsure: I will try again and will report.

IDEASLady
IDEAS Creative Studio

Your image... our business!

9 Sep 2006, 9:46 PM
#519
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,453
Plugin Contributions:
4

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

I will try again and will report.
No, I was VERY carefull to add/edit as per instructions (I'm talking of your included file with the zip, haven't looked to your instructions, if any, on the thread).

Parse error: syntax error, unexpected $end in /home//public_html//includes/templates/burgandy/templates/tpl_product_info_display.php on line 269

***used to cover my directory

I checked for extra/unwanted empty lines at the end of the code, and there's any.

IDEASLady
IDEAS Creative Studio

Your image... our business!

10 Sep 2006, 3:01 PM
#520
qhome avatar

qhome

Totally Zenned

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

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

OK,

I've uploaded the 3.5 FINAL to the downloads area. It has a few changes from the discussions ideasgrl and I had.

  • The Product Details are moved up to the top under the Price by the Main Image now like I had them on the original 3.3 version.
  • The 'How to Port to your Custom Template' document is HTML now and color coded to clear up any potential problems.
  • I've updated the Port instructions to include the movement of the Product Details.
  • Updated the included template files to include the changes to the Product Details moved up top.

I've checked through the instructions a few more times.. and still they work perfect so I dunno what ideasgrl did wrong :p