Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Oct 2009
    Posts
    22
    Plugin Contributions
    0

    Default uri mapping won't work on add to cart botton? help..

    --------------------------------------------------------------------------------

    Hi everyone, here is my site: www.vitabags.com. I have ceon uri mapping installed. everything works fine except for the add to cart bottom in the homepage under the new product for december category. any help would be appreciate. Thanks

    Posted last few hours but don't know why the thread was closed..sorry for the duplicate. But i really need help on this one. thanks

  2. #2
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Your issue is NOT being caused by Ceon URI Mapping!!!!!!

    Your other thread on this matter was closed because the way you posed your question makes it sound as if you are having issues with the Ceon URI Mapping module.. The root of your issue is NOT being caused by the Ceon URI Mapping at all..

    I'm not sure how I can explain this any better.. Your Template Monster template is using CUSTOM coding which is causing a conflict with Ceon URI Mapping module.. The issue can't be resolved by fixing the URI Mapping module.. Your issue needs to be resolved by FIXING YOUR TEMPLATE to either correct this custom code to properly use Zen Cart functions or replace this custom code with the default Zen Cart code for the "Add Selected Products to Cart" button..

    AGAIN, the cause of your problem is not being caused by Ceon URI Mapping.. Rather this module is ILLUMINATING an issue with your template's custom coding.. Your template's custom code is not playing nicely with Ceon URI Mapping because your template's custom coding needs to be corrected..

    DON'T pose your question as if the issue is with Ceon URI Mapping.. Post the TRUE nature of your issue.. I will post your ACTUAL issue once again for you.. (as explained to you by Conor)

    Perhaps the community will then be able to help you fix the REAL issue you are having.

    You appear to have custom coded "Add to cart" links in your New Products box which is building the URI wrong.

    It shouldn't append &action=buy_now but should instead supply action=buy_now as a parameter to the zen_href_link function.

    Change the code to do that and you should get working links.
    Find the fix for your template, and you will fix your problem.. It's really that simple..
    Last edited by DivaVocals; 16 Dec 2010 at 07:52 AM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  3. #3
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: uri mapping won't work on add to cart botton? help..

    A little more information for you.. Your new products centerbox is the issue.. Template Monster added those "Add to Cart" links to the products listing, and in doing so came up with their own "special" method.. Fix THAT so it correctly uses the Zen Cart functions and you will resolve your issue.. (and hopefully now that I have posted a more detailed and accurate problem statement, the community will help you out with that..)

    I suspect that you need to make whatever the required fix is to ALL the centerboxes (specials, featured products, customers who bought,)
    Last edited by DivaVocals; 16 Dec 2010 at 06:15 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  4. #4
    Join Date
    Oct 2009
    Posts
    22
    Plugin Contributions
    0

    Default Re: uri mapping won't work on add to cart botton? help..

    Quote Originally Posted by DivaVocals View Post
    A little more information for you.. Your new products centerbox is the issue.. Template Monster added those "Add to Cart" links to the products listing, and in doing so came up with their own "special" method.. Fix THAT so it correctly uses the Zen Cart functions and you will resolve your issue.. (and hopefully now that I have posted a more detailed and accurate problem statement, the community will help you out with that..)

    I suspect that you need to make whatever the required fix is to ALL the centerboxes (specials, featured products, customers who bought,)
    Thanks for the respon. here is what i found in includes/modules/template28826


    $list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsNew centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"','text' => ($reval));
    //'text' => (($new_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' . $productsInCategory[$new_products->fields['products_id']] . '&products_id=' . $new_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $new_products->fields['products_image'], $new_products->fields['products_name'], IMAGE_PRODUCT_NEW_WIDTH, IMAGE_PRODUCT_NEW_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' . $productsInCategory[$new_products->fields['products_id']] . '&products_id=' . $new_products->fields['products_id']) . '">' . $new_products->fields['products_name'] . '</a><br />' . $products_price);

    $col ++;
    if ($col > (SHOW_PRODUCT_INFO_COLUMNS_NEW_PRODUCTS - 1)) {
    $col = 0;
    $row ++;
    }
    $new_products->MoveNextRandom();
    }

    if ($new_products->RecordCount() > 0) {
    if (isset($new_products_category_id) && $new_products_category_id != 0) {
    $category_title = zen_get_categories_name((int)$new_products_category_id);
    $title = '<h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . ($category_title != '' ? ' - ' . $category_title : '' ) . '</h2>';
    } else {
    $title = '<h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . '</h2>';
    }
    $zc_show_new_products = true;


    Any thing i should fix in here?

  5. #5
    Join Date
    Oct 2009
    Posts
    22
    Plugin Contributions
    0

    Default Re: uri mapping won't work on add to cart botton? help..

    Quote Originally Posted by bryanblue View Post
    Thanks for the respon. here is what i found in includes/modules/template28826


    $list_box_contents[$row][$col] = array('params' => 'class="centerBoxContentsNew centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"','text' => ($reval));
    //'text' => (($new_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' . $productsInCategory[$new_products->fields['products_id']] . '&products_id=' . $new_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $new_products->fields['products_image'], $new_products->fields['products_name'], IMAGE_PRODUCT_NEW_WIDTH, IMAGE_PRODUCT_NEW_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath=' . $productsInCategory[$new_products->fields['products_id']] . '&products_id=' . $new_products->fields['products_id']) . '">' . $new_products->fields['products_name'] . '</a><br />' . $products_price);

    $col ++;
    if ($col > (SHOW_PRODUCT_INFO_COLUMNS_NEW_PRODUCTS - 1)) {
    $col = 0;
    $row ++;
    }
    $new_products->MoveNextRandom();
    }

    if ($new_products->RecordCount() > 0) {
    if (isset($new_products_category_id) && $new_products_category_id != 0) {
    $category_title = zen_get_categories_name((int)$new_products_category_id);
    $title = '<h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . ($category_title != '' ? ' - ' . $category_title : '' ) . '</h2>';
    } else {
    $title = '<h2 class="centerBoxHeading">' . sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . '</h2>';
    }
    $zc_show_new_products = true;


    Any thing i should fix in here?
    Above is in the new_products.php

    below is in the featured_products.php

    $list_box_contents[$row][$col] = array('params' =>'class="centerBoxContentsFeatured centeredContent back"' . ' ' . 'style="width:' . $col_width . '%;"','text' => ($reval));

    // 'text' => (($featured_products->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $products_price);



    $col ++;
    if ($col > (SHOW_PRODUCT_INFO_COLUMNS_FEATURED_PRODUCTS - 1)) {
    $col = 0;
    $row ++;
    }
    $featured_products->MoveNextRandom();
    }

    if ($featured_products->RecordCount() > 0) {
    if (isset($featured_products_category_id) && $featured_products_category_id !=0) {
    $category_title = zen_get_categories_name((int)$featured_products_category_id);
    $title = '<h2 class="centerBoxHeading">' . TABLE_HEADING_FEATURED_PRODUCTS . ($category_title != '' ? ' - ' . $category_title : '') . '</h2>';
    } else {
    $title = '<h2 class="centerBoxHeading">' . TABLE_HEADING_FEATURED_PRODUCTS . '</h2>';
    }
    $zc_show_featured = true;
    }
    }
    ?>


    any fix? thanks

  6. #6
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: uri mapping won't work on add to cart botton? help..

    Suggest using the Developers Toolkit in the store admin and search for "buy_now " to see exactly where Template Monster added this code.. and when posting code in a post PLEASE enclose it in the code shortcodes.. Makes it a LOT easier to read..

    BTW.. I don't KNOW if I'll be able to help you.. But I am hoping to get you to the place where you've posted enough of the RIGHT information here so that if there is a kind soul in the community who can help you they know the correct details of your issue..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #7
    Join Date
    Oct 2009
    Posts
    22
    Plugin Contributions
    0

    Default Re: uri mapping won't work on add to cart botton? help..

    Quote Originally Posted by DivaVocals View Post
    Suggest using the Developers Toolkit in the store admin and search for "buy_now " to see exactly where Template Monster added this code.. and when posting code in a post PLEASE enclose it in the code shortcodes.. Makes it a LOT easier to read..

    BTW.. I don't KNOW if I'll be able to help you.. But I am hoping to get you to the place where you've posted enough of the RIGHT information here so that if there is a kind soul in the community who can help you they know the correct details of your issue..
    hi, i am sorry i didn't know that. here is what i found doing search in with buy_now in the catalog.

    includes/classes/shopping_cart.php
    includes/functions/functions_general.php
    includes/functions/functions_prices.php
    includes/init_includes/init_cart_handler.php
    includes/languages/english/advanced_search.php
    includes/languages/english/advanced_search_result.php
    includes/languages/english/button_names.php
    includes/languages/english/index.php
    includes/main_cart_actions.php
    includes/modules/pages/index/main_template_vars.php
    includes/modules/product_listing.php
    includes/modules/template28826/featured_products.php
    includes/modules/template28826/new_products.php
    includes/modules/template28826/specials_index.php
    includes/templates/template28826/templates/tpl_product_info_display.php
    includes/templates/template_default/templates/tpl_document_general_info_display.php
    includes/templates/template_default/templates/tpl_document_product_info_display.php
    includes/templates/template_default/templates/tpl_modules_products_all_listing.php
    includes/templates/template_default/templates/tpl_modules_products_featured_listing.php
    includes/templates/template_default/templates/tpl_modules_products_new_listing.php
    includes/templates/template_default/templates/tpl_product_free_shipping_info_display.php
    includes/templates/template_default/templates/tpl_product_info_display.php
    includes/templates/template_default/templates/tpl_product_music_info_display.php
    includes/templates/template_default/templates/tpl_product_reviews_default.php
    includes/templates/template_default/templates/tpl_product_reviews_info_default.php



    below are the php for files which i guess might be the right one:

    includes/modules/template28826/featured_products.php
    PHP Code:
    Line #109 : $reval .= " ". "<a href=\"" . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath='. $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '&action=buy_now">' . zen_image_button('button_add_to_cart.gif',BUTTON_ADD_TO_CART_ALT) . '</a>' ; 
    includes/modules/template28826/new_products.php
    PHP Code:
    Line #108 : $reval .= " ". "<a href=\"" . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath='. $productsInCategory[$new_products->fields['products_id']] . '&products_id=' . $new_products->fields['products_id']) . '&action=buy_now">' . zen_image_button('button_add_to_cart.gif',BUTTON_ADD_TO_CART_ALT) . '</a>' ; 
    If i am wrong, please point out the right files i need to edit. thanks

  8. #8
    Join Date
    Oct 2009
    Posts
    22
    Plugin Contributions
    0

    Default Re: uri mapping won't work on add to cart botton? help..

    anybody? please?

  9. #9
    Join Date
    Oct 2009
    Posts
    22
    Plugin Contributions
    0

    Default Re: uri mapping won't work on add to cart botton? help..

    Quote Originally Posted by bryanblue View Post
    hi, i am sorry i didn't know that. here is what i found doing search in with buy_now in the catalog.

    includes/classes/shopping_cart.php
    includes/functions/functions_general.php
    includes/functions/functions_prices.php
    includes/init_includes/init_cart_handler.php
    includes/languages/english/advanced_search.php
    includes/languages/english/advanced_search_result.php
    includes/languages/english/button_names.php
    includes/languages/english/index.php
    includes/main_cart_actions.php
    includes/modules/pages/index/main_template_vars.php
    includes/modules/product_listing.php
    includes/modules/template28826/featured_products.php
    includes/modules/template28826/new_products.php
    includes/modules/template28826/specials_index.php
    includes/templates/template28826/templates/tpl_product_info_display.php
    includes/templates/template_default/templates/tpl_document_general_info_display.php
    includes/templates/template_default/templates/tpl_document_product_info_display.php
    includes/templates/template_default/templates/tpl_modules_products_all_listing.php
    includes/templates/template_default/templates/tpl_modules_products_featured_listing.php
    includes/templates/template_default/templates/tpl_modules_products_new_listing.php
    includes/templates/template_default/templates/tpl_product_free_shipping_info_display.php
    includes/templates/template_default/templates/tpl_product_info_display.php
    includes/templates/template_default/templates/tpl_product_music_info_display.php
    includes/templates/template_default/templates/tpl_product_reviews_default.php
    includes/templates/template_default/templates/tpl_product_reviews_info_default.php



    below are the php for files which i guess might be the right one:

    includes/modules/template28826/featured_products.php
    PHP Code:
    Line #109 : $reval .= " ". "<a href=\"" . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath='. $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '&action=buy_now">' . zen_image_button('button_add_to_cart.gif',BUTTON_ADD_TO_CART_ALT) . '</a>' ; 
    includes/modules/template28826/new_products.php
    PHP Code:
    Line #108 : $reval .= " ". "<a href=\"" . zen_href_link(zen_get_info_page($new_products->fields['products_id']), 'cPath='. $productsInCategory[$new_products->fields['products_id']] . '&products_id=' . $new_products->fields['products_id']) . '&action=buy_now">' . zen_image_button('button_add_to_cart.gif',BUTTON_ADD_TO_CART_ALT) . '</a>' ; 
    If i am wrong, please point out the right files i need to edit. thanks
    ok....they fixed for me...here is the fix.
    add
    PHP Code:
    zen_get_all_get_params(array('action')) . '&action=buy_now' ) . '">' 

  10. #10
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: uri mapping won't work on add to cart botton? help..

    Quote Originally Posted by bryanblue View Post
    ok....they fixed for me...here is the fix.
    add
    PHP Code:
    zen_get_all_get_params(array('action')) . '&action=buy_now' ) . '">' 
    I assume "they" is Template Monster???
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v139d Ceon uri mapping, how to generate uri mapping for bulk bulk-imported products?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 8 Jan 2013, 06:52 AM
  2. v150 Since I installed ceon uri mapping, wholesale doesn't work...
    By rainbow_pixie_star in forum All Other Contributions/Addons
    Replies: 41
    Last Post: 4 Sep 2012, 08:26 PM
  3. v150 Problem with Ceon Uri Mapping Add on
    By GodfatherAntiques in forum General Questions
    Replies: 5
    Last Post: 2 Jul 2012, 08:04 PM
  4. Replies: 3
    Last Post: 25 Oct 2010, 04:39 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