Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Apr 2012
    Posts
    151
    Plugin Contributions
    0

    Default how to do this custom coding?

    zencart provide $options_menu to list products properties such as colors , sizes. but this var is containing html code.
    My html deisin must chage the html struture, for this reason I must get the arrray bellow, how to do it ?

  2. #2
    Join Date
    Apr 2012
    Posts
    151
    Plugin Contributions
    0

    Default how to set diffrent prices for the same product with diffrent styles?

    how to set diffrent prices for the same product with diffrent styles?

  3. #3
    Join Date
    Mar 2009
    Posts
    89
    Plugin Contributions
    0

    Default Re: how to set diffrent prices for the same product with diffrent styles?

    You could always just set it up so there's the four product options you talked about under one dropdown box, ie instead of having a box for color and a box for size you could have one which has:
    blue medium
    red medium
    blue small
    red small

    That would mean the user only has to click on one dropdown box as well, which is surely a good thing since there aren't so many choices anyway?

  4. #4
    Join Date
    Apr 2012
    Posts
    151
    Plugin Contributions
    0

    Default how to add shopping cart info on head of site?

    how to add shopping cart info on head of site?

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: how to add shopping cart info on head of site?


  6. #6
    Join Date
    Apr 2012
    Posts
    151
    Plugin Contributions
    0

    Default how to list image by date in tpl_index_product_list.php?

    the default template list new products by random. the products changes when refresh the page.
    now I want to list the latest product by date. how to do it ?

  7. #7
    Join Date
    Apr 2012
    Posts
    151
    Plugin Contributions
    0

    Default how to add a diy page which can use zencart functions and constants?

    how to add a diy page which can use zencart functions and constants?

    the page can use zencart functions and constants.but it must not include any template php files ,such as tpl_header.php.
    I want to use this page to do ajax request feedback.

    for example:
    this page i named it as ajax.php ,
    i want to add ajax in product_info page, in js code ,i use jquery,

    HTML Code:
    $.ajax({
    url:"http://localhost/includes/templates/my_template/ajax/ajax.php",
    ...
    success: function(html){
    $("#hello").html(html)
    }
    });
    if the ajax.php contains head or foot html code, these code are not my needed code,the ajax return code is not clean.

    how to add this type of diy page?

  8. #8
    Join Date
    Apr 2012
    Posts
    151
    Plugin Contributions
    0

    Default how to get product name ,image, category id from products_id

    only know the product id , such as 10
    how to get product name ,image, category id from products_id?
    need sql or any zencart function?

  9. #9
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,399
    Plugin Contributions
    87

    Default Re: how to get product name ,image, category id from products_id

    $product_name = zen_get_products_name($product_id[,$language_id=$current_language_id]);
    $category_id = zen_get_products_category_id($product_id);
    $image = zen_get_products_image($product_id[,$width=SMALL_IMAGE_WIDTH,$height=SMALL_IMAGE_HEIGHT]);

    ... where the parameters in [brackets] are optional and the default values are shown. All functions are in /includes/functions/functions_lookups.php.

  10. #10
    Join Date
    Apr 2012
    Posts
    151
    Plugin Contributions
    0

    Default Re: how to get product name ,image, category id from products_id

    thank you very much

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v154 Nice Site, how much is custom coding?
    By w4mmp in forum General Questions
    Replies: 1
    Last Post: 8 Dec 2015, 04:27 PM
  2. v150 Custom coding for automatic order forwarding
    By brannon125 in forum General Questions
    Replies: 1
    Last Post: 16 Feb 2012, 10:56 PM

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