Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2009
    Posts
    5
    Plugin Contributions
    0

    help question Showing attribute options to users

    I've got a fairly configured site going and I'm down to the final details now. I've hit a small snag though. When the user orders something from me they will have an option of fonts to select from. But how will they know what a font looks like without an example? So I've created and EZ page that has a listing of the fonts and what they look like. I know how to put links to it and all, but my question is this. How can I only show a link to it near the attributes on pages that have the font option? It wouldn't make sense to show them the font page link if they don't have to pick a font. Am I going about this the right way? I've reviewed the ability to attach a picture to a font option, but I don't think that's a good fit as there are hundreds of fonts to choose from and I don't want it to load all of that content on the main order page. Thoughts, opinions, ideas?

    TIA

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Showing attribute options to users

    Use the option comment and put the link in there

    You can adjust where the option comment appears with a bit of css.

  3. #3
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Showing attribute options to users

    Having said that how does your EZ page work?

    I guess it has graphic images of the fonts (ie jpgs, gifs or pngs) If it uses the fonts themselves then this just won't display properly on some machines. Just a thought.

    But as another thought if this is the case and you have images of what the fonts look like why not use them as attribute images?

  4. #4
    Join Date
    Jul 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Showing attribute options to users

    There would be just WAY too many of them to use as attribute images. Yes, they're jpg's of what the fonts look like. But the attribute comment idea might be just the ticket. I'll check it. Thanks

  5. #5
    Join Date
    Jul 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: Showing attribute options to users

    Well, I would like for that comment to be a link. I put in <a href> form and got it to work, but I have a problem. It limits how many characters that will show in that comment field. So I can only get so many in there. Anyone know how I could extend that limit?

    Thanks

  6. #6
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Showing attribute options to users

    Well the database has a limit of 64 characters as default. And it looks like the entry in admin has a limit of 64 characters so you don't attempt to load in too many characters to the database.

    You could alter the database to allow more characters and edit the admin files so as to increase the limit correspondingly.

    Hmm, maybe there is a quicker way...

    Give me a moment....

  7. #7
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: Showing attribute options to users

    Find a file called tpl_modules_attributes.php (includes/templates/yourtemplate/templates/) and look for the bit that is like this:

    Code:
    <div class="wrapperAttribsOptions">
    
    <h4 class="optionName back"><?php echo $options_name[$i]; ?></h4>
    
    <div class="back"><?php echo "\n" . $options_menu[$i]; ?></div>
    
    <br class="clearBoth" />
    
    </div>
    Now you want to add a bit in so you get:

    Code:
    <div class="wrapperAttribsOptions">
    
    <h4 class="optionName back"><?php echo $options_name[$i]; ?></h4>
    
    <p class="optionLink"> 
    <?php if ($options_name[$i]=='Color'){
    echo'put the link here';
    };
    ?>
    
    
    <div class="back"><?php echo "\n" . $options_menu[$i]; ?></div>
    
    <br class="clearBoth" />
    
    </div>
    You need to adjust the word 'Color' to match the name of your font option. Check it is working at this point by uploading. You should see the words 'Put the link here' where the link should go. If you see nothing it might be because you have got the option name wrong (caps maybe)

    Then you can put your link instead of the words 'Put the link here'. Use double quotes in your link rather than single quotes so as not to confuse the php pixies. So that line might read:

    Code:
    echo'<a href="../Desktop/Mango 
    Sailing/Calendar_mar.htm">
    <img src="../images/aldos daves 319.jpg">
    </a>';
    But obviously with your own images and paths

 

 

Similar Threads

  1. v151 Australian Users - E-Parcel or Click & Send Options
    By lj20272 in forum Addon Shipping Modules
    Replies: 1
    Last Post: 12 Feb 2013, 03:14 AM
  2. new users options
    By tedgibbs in forum General Questions
    Replies: 1
    Last Post: 31 Jan 2012, 09:14 AM
  3. Shipping options not showing to unregsitered users
    By bobanct in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 25 Mar 2009, 08:09 PM
  4. different payment options for different users/groups of users
    By grossd in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 17 Feb 2008, 06:48 PM
  5. attribute options based on previous options chosen
    By dssprogrammer in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 19 Apr 2007, 01:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg