The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
Multiple Product Layouts In Same Category
Author Message
Reply with quote
Post Multiple Product Layouts In Same Category 
Is it possible to have more than one product layout for items in the same category? I have 4 products which use one layout and would like to add a fifth which uses a different one. I realise it is possible to have different layouts for different categories but would really like to have just the one category.

View user's profile Send private message
Reply with quote
Post  
Hi Mark,

let's say you don't want to display the add to cart button for a specific product, you could do something like this:
Code:


<td class="ac_add-quantity">
               <!--agorascript-post
               # My PERL code goes here!
               &capture_STDOUT; #captures STDOUT to a special file
               local ($my_string);
               local ($my_string1);
               $my_string = '%%name%%';
               $my_string1 = 'the name of the product whitout add to cart button';
               if($my_string ne $my_string1)
               {
                  print "<input type='image' name='add_to_cart_button' value='Add To Cart' src='%%ButtonSetURL%%/add_to_cart.gif'>";
               }               
      &uncapture_STDOUT;
      
               #uncaptures, returns the text to be included in HTML
-->
            
               </td>



_________________
madarcu
View user's profile Send private message Yahoo Messenger
Reply with quote
Post  
markjd,
I don't know of a way to make a product use a different ppinc file for a single product in your category. The may be a way though... but it will affect all products but not too much if really at all...
I suppose it might even depend on how, exactly, you wanted this other ppinc file to look like or what you were wanting to acheive with this product.


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
sure. you could do it with agorascript or somewhat easier would be an option file without any options or with options if they apply.
with the agorascript you identify the product(s) by id and if a match then display userfields or test or something. you would want to assign product ids for the special products so the special products display first or last incase there is a potential of blowing up the design or just plain looking badly.
d

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum