Results 1 to 10 of 22

Hybrid View

  1. #1
    Join Date
    Jul 2006
    Posts
    50
    Plugin Contributions
    2

    Default how do I make "buy it now" link in featured products on the front page?

    This also applies to specials and new this month items.

    How do I make a "buy it now" link for a product that is in a "featured item", "Specials", and "New This Month" center box that is found on the front page?

    I can't seem to find it in the admin area. I'd be happy with an "Add to Cart" link if that's all that can be done.

    Another link I need to know how to make is a more info button that links to the items itself.

    Also does Zen cart have a function to display the first [x many] characters in a description field already built in or do I need to build my own. The last thing I want to have happen is a breaking of a table or a div that was put into the description and have it not be closed just because I did a substring.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: how to ?: make "buy it now" link in featured products on the front page

    How do I make a "buy it now" link for a product that is in a "featured item", "Specials", and "New This Month" center box that is found on the front page?
    These are in the admin but I can not attest to their function:

    Admin > confuguration > Featured Listing > Display Product Buy Now Button
    Same for other listings.

    Another link I need to know how to make is a more info button that links to the items itself.
    You should check the current function as even if there is not a more info, clicking the image and other areas of a listing takes you to the Product Info page.
    Also does Zen cart have a function to display the first [x many] characters in a description field already built in or do I need to build my own.
    This is also in the admin for several of the product screens like the product listing page:
    Admin > configuration > product listing > Display Product Description

    The last thing I want to have happen is a breaking of a table or a div that was put into the description and have it not be closed just because I did a substring.
    Describe this in specific detail???
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2006
    Posts
    50
    Plugin Contributions
    2

    Default Re: how to ?: make "buy it now" link in featured products on the front page

    Quote Originally Posted by kobra
    These are in the admin but I can not attest to their function:

    Admin > confuguration > Featured Listing > Display Product Buy Now Button
    Same for other listings.
    unfortunatly this refers to the listing when you get into Featured Items from the category list. I've had to customize the featured_products.php file to change how list looks. I've made a customized buy now button and more info button. Also the description was not being displayed and I had to add that too.

    You should check the current function as even if there is not a more info, clicking the image and other areas of a listing takes you to the Product Info page.
    I wanted to add a button regardless of the links that were already there. I got that done with some customization of the featured_products.php file.

    This is also in the admin for several of the product screens like the product listing page:
    Admin > configuration > product listing > Display Product Description
    the problem is that in Admin > configuration > featured listing secion controls only the listing that looks like the product listing. The center boxe for featured products on the front page are not crontrolled through this UI and does not have a customization setup that I desire. No probelm, I'm a programmer I can go in and find out where it is and make my own customizations. If you look at the page http://markham.kirkhamsystems.dyndns.org you will see that I have a customized "featured products" center box. There is no way to display descriptions, add to cart buttons or more info buttons to the center box. the suggestion you give leads to the next quote.

    Describe this in specific detail???
    in Admin > configuration > product listing > Display Product Description one is able to control the amount of the description that is displayed on the listing. Since I want this on the front page, I would like to know what function(s) are used to do this as I beleive the system would take into account HTML code and properly strip and replace codes if necessary.

    For example if there is 300 characters in a descriptions, and some of that is HTML like <table...><tr><td>some text</td></tr><tr><td> ... text at the end </td></tr></table> if I just go in and do a substring of the first 20 characters all I get is <table ...><tr><td>some text </tr>(end of substring) all of a sudden I got a broken table and that is what I want to avoid. I think I may have found the function(s) I want but it looks like it strips the html away and provides an unstructured string. it's
    zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($listi ng->fields['products_id'], $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION)

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: how to ?: make "buy it now" link in featured products on the front page

    Granville,
    Sorry for the simplistic response that I posted, had you stated that you were a programmer and customizing the displays, I either would not have posted or posted in a different manner.

    A very nice implementation of ZenCart that you have assembled!! I believe that their is a showcase where your site can be displayed as one that uses ZenCart. There are very few restrictions for this and you might consider doing this. Many considering ZenCart need great examples to convince employers, clients or others that this cart is a good chioce.

    Also, as the base cart script was opensourced for your use, you might consider assembling this as a contribution for others that might be wishing for something like this, and give back to the community if you so choose.

    Great work!
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Jul 2006
    Posts
    50
    Plugin Contributions
    2

    Default Re: how to ?: make "buy it now" link in featured products on the front page

    Quote Originally Posted by kobra
    A very nice implementation of ZenCart that you have assembled!! I believe that their is a showcase where your site can be displayed as one that uses ZenCart. There are very few restrictions for this and you might consider doing this. Many considering ZenCart need great examples to convince employers, clients or others that this cart is a good chioce.

    Also, as the base cart script was opensourced for your use, you might consider assembling this as a contribution for others that might be wishing for something like this, and give back to the community if you so choose.

    Great work!
    Sorry to take so long to respond back on this, been busy. Thanks for the compliment and I'll deffinatly look into the showcase, maybe it will drum up some business for my company.

  6. #6
    Join Date
    May 2004
    Posts
    105
    Plugin Contributions
    2

    Default Re: how to ?: make "buy it now" link in featured products on the front page

    Would you be willing to share how you did this with me? It would be so deeply appreciated!!!

    CJ

 

 

Similar Threads

  1. v150 How Do I Make The "Buy Now" Button Go Away For Just One Item?
    By Scully in forum General Questions
    Replies: 5
    Last Post: 12 Feb 2013, 10:33 PM
  2. How to make an old product turn up under "new products" on the front page?
    By Nina_Paris_France in forum Customization from the Admin
    Replies: 4
    Last Post: 13 Jun 2011, 06:37 PM
  3. How to: new/featured main page - "buy now/details" change to "design" with attributes
    By ladybugmom in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Jan 2011, 11:23 AM
  4. Replies: 12
    Last Post: 17 Jul 2009, 01:26 AM
  5. Replies: 0
    Last Post: 9 Sep 2008, 03:44 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