New Zenner
- Join Date:
- Sep 2004
- Posts:
- 26
- Plugin Contributions:
- 0
Tabbed Products Pro (TPP) Contrib - Official Thread
Ok, I figured it out... I needed to give myself access in the admin profile section!
Started by qhome on 21 Jan 2008, 7:19 AM · Views: 398,462
New Zenner
Ok, I figured it out... I needed to give myself access in the admin profile section!
New Zenner
Hey, for some reason, when I click to a different tab, it auto adjusts and moves my entire product page....click below to see what's happening....
http://www.bizmug.com/zencart/index....roducts_id=180
I dont want this resizing and want my item name to stay at the top of my page. for some reason it drops down when you click on 'production time' tab. anyone know how to fix this?
Thanks!
Chris
New Zenner
oops...bad link in last reply...here is the link....
http://www.bizmug.com/zencart/index.php?main_page=product_info&cPath=65_66&products_id=180
hope someone can figure out how I can fix this...it's driving me crazy!!!
Chris
Totally Zenned
cevans73:
oops...bad link in last reply...here is the link....
http://www.bizmug.com/zencart/index.php?main_page=product_info&cPath=65_66&products_id=180hope someone can figure out how I can fix this...it's driving me crazy!!!
Chris
That is what is supposed to do by default, since different tabs may hold different amounts of data.
I did, however, post a way to make it static here
(tho the demo is dead now)
Templates: Silverfish | Blue Admin | TruBlu
Contribs: USPS AutoFill | Column Divider Pro | Tabbed Products Pro | Main Image Replacer
DoNaTiOnS WeLcOmE!
New Zenner
You're a frickin lifesaver! Thank you thank you! That is much better....the dropping down thing was driving me mad....static is much more eye appealing...you should hard code that as the default for sure!
Great mod by the way!! Now i can continue working on my site and stop pulling out my hair!!!!
Have a great day!
Chris
Totally Zenned
I guess it all depends on how you implement them. I do like the way you have it, but that wasn't the image in my head when designed... Good thing I made them easy enough to be customized for a multitude of layouts :smile::cool::laugh:
Templates: Silverfish | Blue Admin | TruBlu
Contribs: USPS AutoFill | Column Divider Pro | Tabbed Products Pro | Main Image Replacer
DoNaTiOnS WeLcOmE!
New Zenner
Ok, I would like to make global changes to custom tabs that I have created, but they don't show up on the tpp config (only the standard ones are there).....is it even possible to make global changes to custom tabs, or do you have to go into each product description to change them?
Thanks again for your help!
Chris
Totally Zenned
cevans73:
Ok, I would like to make global changes to custom tabs that I have created, but they don't show up on the tpp config (only the standard ones are there).....is it even possible to make global changes to custom tabs, or do you have to go into each product description to change them?
Thanks again for your help!
Chris
It wouldn't be very 'Global' if you had to change them in each product :laugh:
But if you are making a custom tab to work with the Globals you need to go the whole 9 yards and add it to the global section of the tpp module file and add a db entry for the new global setting.
As An alternative to the database entry, you could instead just set the global to true at the top of the tpp module file, instead of setting it to the value of the db constant.
What changes have you made so far? Its not really hard to make a new global setting, but it does have to be structured properly.
Templates: Silverfish | Blue Admin | TruBlu
Contribs: USPS AutoFill | Column Divider Pro | Tabbed Products Pro | Main Image Replacer
DoNaTiOnS WeLcOmE!
New Zenner
Thanks for the insight! Being new at this, I am unaware how or what to add to the tpp module file or db....are there detailed instructions on how and what to add where? Sorry to be a pain, but I want to make sure I do this right and not screw anything up....
Thanks again!
Chris
Totally Zenned
Quick & Dirty method attached
Templates: Silverfish | Blue Admin | TruBlu
Contribs: USPS AutoFill | Column Divider Pro | Tabbed Products Pro | Main Image Replacer
DoNaTiOnS WeLcOmE!
New Zenner
Awesome! Ok, I think I'm almost there....I think one more reply and I'm good...let's take the tab that I added 'Imprint Colors'...here is the link to my website product page by the way...if you want to look at what I have under that tab...
http://www.bizmug.com/zencart/index.php?main_page=product_info&cPath=65_66&products_id=180
Now how would I translate what I have in that tab, into the code that you provided? I see the example you did with the shipping estimator, how you have to preload it....so would I have to preload the information that I have for the imprint color tab somehow? I'm confused on where to put what I actually have under the tab, where it would be changed globally. For example in the code under the preload section when you get the template...would I have to create a new template for 'Imprint Colors'? Again, sorry to be such a pain! I think I'm almost there...
GOOD DEEDS ARE REWARDED!
THANKS! CHRIS
Zen Follower
I'm going to back to the question about adding the Add To Cart to the attributes tab... I'm convinced there HAS to be a way of doing this!
If you look here http://www.valcarr.co.uk/christening-invitations-157/pink-giraffe-christening-invitation-flat-card-910.html
I have the Add To Cart NOT in a tab which then makes it appear globally (independant of the tabs) which means that it is possible to add a product and check out without entering the text needed for the product (which are the attributes). If I add the Add To Cart on it's own tab then it also breaks the fill in the form > checkout logic.
I need a way of either adding the Add To Cart to the attribute tab OR hide it on all the tabs except the attribute tab...
Any Ideas?
Thanks
Totally Zenned
cevans73:
Now how would I translate what I have in that tab, into the code that you provided?
Using my example:
--TAB STRIP SECTION--
Find:
if ($bReviews_Tab != false) {
$tabstrip .= "\n" . '<li><a href="javascript:void(0)" onclick="expandcontent(\'sc'.$g.'\', this)"><span>'.$reviews_tab_name.'</span></a></li>' . "\n";
$g++;
}
After, add:
// ===> Add Imprint Colors to tabs (tabstrip)
$tabstrip .= "\n" . '<li><a href="javascript:void(0)" onclick="expandcontent(\'sc'.$g.'\', this)"><span>Imprint Colors</span></a></li>' . "\n";
$g++;
That will add the actual tab to the strip. Next we will associate it with its "content box". The preload isn't required persay. It is meant to load an existing page or database query ahead of time. In this case, you just have static content, so we can just hardcode that here:
--TAB CONTENT SECTION--
Find:
// ===> Check if Reviews should be on tabs (content)
if ($bReviews_Tab != false) {
$tabcontent .= "\n" . '<!--bof Reviews_Tab sc'.$a.'-->';
$tabcontent .= "\n" . '<div id="sc'.$a.'" class="tabcontent" style="display:block;">';
$tabcontent .= AddHeader ($reviews_tab_name, $a, $bShowHeaders);
$tabcontent .= $fmtRVW;
$tabcontent .= CheckSubTags($a);
$tabcontent .= "\n" . '</div>' . "\n" . '<!--eof Reviews_Tab sc'.$a.'-->' . "\n\n";
$a++;
}
After, add:
// ===> Add Imprint Colors to tabs (content)
$tabcontent .= "\n" . '<!--bof Imprint_Tab sc'.$a.'-->';
$tabcontent .= "\n" . '<div id="sc'.$a.'" class="tabcontent" style="display:block;">';
$tabcontent .= AddHeader ("Imprint Colors", $a, $bShowHeaders);
$tabcontent .= ('<img src="http://www.bizmug.com/zencart/images/pantone/pantone_product_page_image.gif" width="644" height="121">
</br>
<strong><a target="_blank" href="http://www.bizmug.com/pantone_color_chart_new.pdf"><span class="style4">Click Here</span></a><span class="style3"> to view the Pantone Color Chart and to select the best imprint color for your product!</span></strong>
</br>
Note: When selecting your pantone number, reference using the top line information right below the color swatch. We do not need the rgb information on the second line. For example: pantone 106, or pantone 300. For Black or White, just reference 'Black' or 'White', no numbers are needed.');
$tabcontent .= CheckSubTags($a);
$tabcontent .= "\n" . '</div>' . "\n" . '<!--eof Imprint_Tab sc'.$a.'-->' . "\n\n";
$a++;
Try that and let me know if it works.
Templates: Silverfish | Blue Admin | TruBlu
Contribs: USPS AutoFill | Column Divider Pro | Tabbed Products Pro | Main Image Replacer
DoNaTiOnS WeLcOmE!
Totally Zenned
twdhosting:
I'm going to back to the question about adding the Add To Cart to the attributes tab... I'm convinced there HAS to be a way of doing this!
If you look here http://www.valcarr.co.uk/christening-invitations-157/pink-giraffe-christening-invitation-flat-card-910.html
I have the Add To Cart NOT in a tab which then makes it appear globally (independant of the tabs) which means that it is possible to add a product and check out without entering the text needed for the product (which are the attributes). If I add the Add To Cart on it's own tab then it also breaks the fill in the form > checkout logic.
I need a way of either adding the Add To Cart to the attribute tab OR hide it on all the tabs except the attribute tab...
Any Ideas?
Thanks
Hmm, I thought for sure I fixed a problem like that, but not exactly like that. If you put attributes NOT on a tab, then the form logic properly prevents you from adding it to cart without filling in the TEXT option right?
I will try that on my demo site.
Templates: Silverfish | Blue Admin | TruBlu
Contribs: USPS AutoFill | Column Divider Pro | Tabbed Products Pro | Main Image Replacer
DoNaTiOnS WeLcOmE!
Zen Follower
qhome:
Hmm, I thought for sure I fixed a problem like that, but not exactly like that. If you put attributes NOT on a tab, then the form logic properly prevents you from adding it to cart without filling in the TEXT option right?
I will try that on my demo site.
Yes - if you leave the attributes NOT on a tab then the form logic works (AFAIK) but that makes the page really long and defeats the object of having the tabs (or in this case 1 tab as that is all that remains)...
I'd really like the description on one tab and then the ordering process on another tab (attributes + checkout) if it can be done?
Thanks
Totally Zenned
I don't see any form validation at all on the add to cart. I even removed TPP from my demo site altogether and used the standard zen-cart files. I have my text box set to "required" but it doesn't care. I got all the way through checkout. Maybe there is some other setting we are missing.
Templates: Silverfish | Blue Admin | TruBlu
Contribs: USPS AutoFill | Column Divider Pro | Tabbed Products Pro | Main Image Replacer
DoNaTiOnS WeLcOmE!
Zen Follower
Weird isn't it?
So the problem with form validation is a zencart one it seems...
Back to the original question then... Can the add to cart be put on the attributes tab? :)
New Zenner
Thanks a lot for the code! Unfortunatley it didn't work, or maybe I did something wrong...now nothing on the product page screen is showing...see here....
http://www.bizmug.com/zencart/index.php?main_page=product_info&cPath=65_66&products_id=180
Help! Thanks again!!!
Chris
Totally Zenned
cevans73:
Thanks a lot for the code! Unfortunatley it didn't work, or maybe I did something wrong...now nothing on the product page screen is showing...see here....
http://www.bizmug.com/zencart/index.php?main_page=product_info&cPath=65_66&products_id=180Help! Thanks again!!!
Chris
Well its a minor thing but lets do it a diff way anyway.
Keep the tab strip part from above, but this time we are going to add some preload stuff just to handle the formatting.
So find:
// -----------------------------------------------------------
// ------------- Custom Tab - Tab Contents -----------
// -----------------------------------------------------------
and ABOVE that, paste:
// Pre-load Imprint
$fmtImprint = "\n" . '<div style="width:100%;">' . "\n";
$fmtImprint .= '<img src="http://www.bizmug.com/zencart/images/pantone/pantone_product_page_image.gif" width="644" height="121"></br><strong><a target="_blank" href="http://www.bizmug.com/pantone_color_chart_new.pdf"><span class="style4">Click Here</span></a><span class="style3"> to view the Pantone Color Chart and to select the best imprint color for your product!</span></strong></br>Note: When selecting your pantone number, reference using the top line information right below the color swatch. We do not need the rgb information on the second line. For example: pantone 106, or pantone 300. For Black or White, just reference "Black" or "White", no numbers are needed.';
$fmtImprint .= "\n" . '</div>'. "\n\n";
And for the tab content part:
Find:
// ===> Check if Reviews should be on tabs (content)
if ($bReviews_Tab != false) {
$tabcontent .= "\n" . '<!--bof Reviews_Tab sc'.$a.'-->';
$tabcontent .= "\n" . '<div id="sc'.$a.'" class="tabcontent" style="display:block;">';
$tabcontent .= AddHeader ($reviews_tab_name, $a, $bShowHeaders);
$tabcontent .= $fmtRVW;
$tabcontent .= CheckSubTags($a);
$tabcontent .= "\n" . '</div>' . "\n" . '<!--eof Reviews_Tab sc'.$a.'-->' . "\n\n";
$a++;
}
BELOW that, paste:
// ===> Add Imprint Colors to tabs (content)
$tabcontent .= "\n" . '<!--bof Imprint_Tab sc'.$a.'-->';
$tabcontent .= "\n" . '<div id="sc'.$a.'" class="tabcontent" style="display:block;">';
$tabcontent .= AddHeader ("Imprint Colors", $a, $bShowHeaders);
$tabcontent .= $fmtImprint;
$tabcontent .= CheckSubTags($a);
$tabcontent .= "\n" . '</div>' . "\n" . '<!--eof Imprint_Tab sc'.$a.'-->' . "\n\n";
$a++;
I've got it working on my demo so I know it works :)
Templates: Silverfish | Blue Admin | TruBlu
Contribs: USPS AutoFill | Column Divider Pro | Tabbed Products Pro | Main Image Replacer
DoNaTiOnS WeLcOmE!
New Zenner
Awesome, that worked!!
Thanks so much for your help!!! This will save me a ton of time in the future!
Have a great weekend!!!
Chris
Tell staff why this post should be reviewed.