Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2020
    Location
    Scotland
    Posts
    11
    Plugin Contributions
    0

    help question Buttons versus Links

    Hi
    So, when I hit on a category link, either from the sidebox or the navbar, I get a product listing page. Some of the listed products have a 'Buy Now' button and the rest, those products with attributes set, have a '...more info' link to the product details page for that particular item. Great!
    Now, if I hit the 'NEW GEAR' link in the categories sidebox, or the 'ALL PRODUCTS' link, also there, I get a very similar product listing to the previous ones, EXCEPT on these occasions instead of getting the '...more info' links I get '...more info' buttons ! This is fab! beause now they match the 'BUY NOWs' and it all looks much nicer and more consistent, (IMHO anyways...)
    So I want to change the '...more info' LINKS on the product listing pages, generated after hitting the navbar or categories links, to the nice '...more info' BUTTONS that are generated when I hit the 'ALL PRODUCTS/WHATS NEW' links.

    Any ideas how i might tackle this ??
    Thanks

    Kif

    https://highlandarmysurplus.co.uk/

  2. #2
    Join Date
    Jun 2020
    Location
    Scotland
    Posts
    11
    Plugin Contributions
    0

    Default Re: Buttons versus Links

    Hey, what do you know. I can probably do this in the stylesheet maybe... ?

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,133
    Plugin Contributions
    11

    Default Re: Buttons versus Links

    If you fix the errors in the stylesheet_css_buttons.css, that might fix the problem.

    Line 51 of stylesheet.css should have # in front of 0000FF

    Lines 91 and 96 of stylesheet_colors.css (remove the . after background in line 96)

    Line 9 of stylesheet_css_buttons.css has ;!important; -- should not have ; before it.

    One thing customers are not enamored with is having their IP address on the site.

    One thing forum members are not enamored with is removing the reference to Zen Cart. You have the option, we just like those who appreciate we had a part in a great site

    You do have some accessibility concerns with contrast. Your 102,153,0 would need to be 66,97,0 to pass. Take a look at https://docs.zen-cart.com/user/template/accessibility/

    jquery 3.4.0 has some vulnerabilities as well.

    Don't get me wrong: I'm impressed with the work.

  4. #4
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    2,684
    Plugin Contributions
    9

    Default Re: Buttons versus Links

    Quote Originally Posted by frumious View Post
    Hey, what do you know. I can probably do this in the stylesheet maybe... ?
    ah, the joy of styling... 1 page looks so similar, and yet.... the construction is so different....

    i "think" you want to look here:

    includes/modules/product_listing.php

    there looks to be a couple of places to change. you need to add the class="list-more" to a couple of elements. try doing this:

    PHP Code:
    //find
              
    $lc_button '<a href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > and $_GET['filter_id']) > ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > $_GET['cPath'] : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' $listing->fields['products_id']) . '">' MORE_INFO_TEXT '</a>';

    //change to:

              
    $lc_button '<a class="list-more" href="' zen_href_link(zen_get_info_page($listing->fields['products_id']), 'cPath=' . (($_GET['manufacturers_id'] > and $_GET['filter_id']) > ?  zen_get_generated_category_path_rev($_GET['filter_id']) : ($_GET['cPath'] > $_GET['cPath'] : zen_get_generated_category_path_rev($listing->fields['master_categories_id']))) . '&products_id=' $listing->fields['products_id']) . '">' MORE_INFO_TEXT '</a>';

    //find
            
    $products_link '<a href="' 
                        
    zen_href_link(zen_get_info_page($listing->fields['products_id']),
                          
    'cPath=' 
                          ( 
                            (
    $_GET['manufacturers_id'] > and $_GET['filter_id']) > 
                            
    zen_get_generated_category_path_rev($_GET['filter_id']) : 
                                (
    $_GET['cPath'] > 
                                                    
    zen_get_generated_category_path_rev($_GET['cPath']) : 
                                                    
    zen_get_generated_category_path_rev($listing->fields['master_categories_id']))
                          ) . 
    '&products_id=' $listing->fields['products_id']
                        ) . 
    '">' MORE_INFO_TEXT '</a>';

    // change to:
            
    $products_link '<a class="list-more" href="' 
                        
    zen_href_link(zen_get_info_page($listing->fields['products_id']),
                          
    'cPath=' 
                          ( 
                            (
    $_GET['manufacturers_id'] > and $_GET['filter_id']) > 
                            
    zen_get_generated_category_path_rev($_GET['filter_id']) : 
                                (
    $_GET['cPath'] > 
                                                    
    zen_get_generated_category_path_rev($_GET['cPath']) : 
                                                    
    zen_get_generated_category_path_rev($listing->fields['master_categories_id']))
                          ) . 
    '&products_id=' $listing->fields['products_id']
                        ) . 
    '">' MORE_INFO_TEXT '</a>'
    you may need to tweak the css a bit to get the line-up correct.

    some of the css changes @dbltoe mentioned should be addressed, as those look like errors. but i do not think they will create the buttons you desire. my changes might...

    good luck!
    author of square Webpay.
    mxWorks has premium plugins. donations: venmo or paypal accepted.
    premium consistent excellent support. available for hire.

 

 

Similar Threads

  1. Paypal payments pro versus simple paypal buttons
    By NJR21 in forum PayPal Website Payments Pro support
    Replies: 2
    Last Post: 23 Dec 2011, 12:04 PM
  2. Buttons instead of links
    By christi-lynn in forum General Questions
    Replies: 2
    Last Post: 17 May 2011, 04:18 PM
  3. Buttons on Sidebox links
    By irishshopper in forum Addon Sideboxes
    Replies: 0
    Last Post: 22 Jan 2011, 03:45 PM
  4. Links and buttons disappearing
    By rstevenson in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 13 Feb 2007, 03:55 PM
  5. upper text links to buttons
    By billscheltema in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 3 Feb 2007, 03:59 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR