Page 66 of 168 FirstFirst ... 1656646566676876116166 ... LastLast
Results 651 to 660 of 1674
  1. #651
    Join Date
    Oct 2012
    Posts
    48
    Plugin Contributions
    0

    Default Re: Ultimate SEO 2.200+ (new features)

    Hi Ihungil

    Many thanks for your response it makes sense.

    Have you tried adjusted your settings in webmaster tools (or robots.txt) to indicate URLs containing the query parameter "action=buy_now" should be excluded from being followed? Or adding a "nofollow" to the link? Or changing the "link" to a website form (such as the product pages use)?

    I have had a look online to see how to exclude the the query parameter "action=buy_now" in the robots txt file but cant seem to find any help there I would also like to try adding a nofollow to the link but again sorry to say not sure where to start, any help or a point in the right direction would be greatly appreciated.

    regards

    Boyd

  2. #652
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Ultimate SEO 2.200+ (new features)

    Adjust to fit your needs:
    Code:
    User-agent: *
    Crawl-delay: 30
    Disallow: /cgi-bin/
    Disallow: /*action=buy_now
    Disallow: /editors/
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  3. #653
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default Re: Ultimate SEO 2.200+ (new features)

    Hi Ihungil

    I got a bit problem on the Add to Cart button on All Products, New Products and Featured Products pages.

    The original link is domain/index.php?main_page=products_all&disp_order=x&action=buy_now&products_id=xxxx.
    It suppose to be rewrited as: domain/products_all.html?action=buy_now&products_id=xxxx&disp_order=6.
    However, it was rewrited as: domain/(product name)-p-(products_id).html?action=buy_now&disp_order=6.

    I thank it come from the function href_link(), but I don't know how to modify. Please help.

    Thanks

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

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by su35 View Post
    Hi Ihungil

    I got a bit problem on the Add to Cart button on All Products, New Products and Featured Products pages.

    The original link is domain/index.php?main_page=products_all&disp_order=x&action=buy_now&products_id=xxxx.
    It suppose to be rewrited as: domain/products_all.html?action=buy_now&products_id=xxxx&disp_order=6.
    However, it was rewrited as: domain/(product name)-p-(products_id).html?action=buy_now&disp_order=6.

    I thank it come from the function href_link(), but I don't know how to modify. Please help.

    Thanks
    Is the issue that the button DOESN'T work as it should?? If it DOES work as it should, what EXACTLY is the issue as you see it??
    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.

  5. #655
    Join Date
    Oct 2011
    Posts
    168
    Plugin Contributions
    0

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by DivaVocals View Post
    Is the issue that the button DOESN'T work as it should?? If it DOES work as it should, what EXACTLY is the issue as you see it??
    When click it, the product was added to shopping cart and the current page was redirected to 404 page.
    If the Ultimate SEO was turn off, the button works fine.

    The code locate on \templates\tpl_modules_products_all_listing.php (about line 90)
    PHP Code:
              if (PRODUCT_ALL_LISTING_MULTIPLE_ADD_TO_CART && $products_all->fields['products_qty_box_status'] != 0) {
    //            $how_many++;
                
    $link TEXT_PRODUCT_ALL_LISTING_MULTIPLE_ADD_TO_CART "<input type=\"text\" name=\"products_id[" $products_all->fields['products_id'] . "]\" value=\"0\" size=\"4\" />";
              } else {
                
    $link '<a href="' zen_href_link(FILENAME_PRODUCTS_ALLzen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' $products_all->fields['products_id']) . '">' zen_image_button(BUTTON_IMAGE_BUY_NOWBUTTON_BUY_NOW_ALT) . '</a>&nbsp;';
              }
            } 
    I made a bit modification like below
    PHP Code:
              if (PRODUCT_ALL_LISTING_MULTIPLE_ADD_TO_CART && $products_all->fields['products_qty_box_status'] != 0) {
    //            $how_many++;
                
    $link TEXT_PRODUCT_ALL_LISTING_MULTIPLE_ADD_TO_CART "<input type=\"text\" name=\"products_id[" $products_all->fields['products_id'] . "]\" value=\"0\" size=\"4\" />";
              } else {
    $a zen_href_link(FILENAME_PRODUCTS_ALLzen_get_all_get_params(array('action')));    
    $b zen_href_link(FILENAME_PRODUCTS_ALLzen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' $products_all->fields['products_id']);
    echo 
    "$a <br />$b<br />";      
                
    $link '<a href="' zen_href_link(FILENAME_PRODUCTS_ALLzen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' $products_all->fields['products_id']) . '">' zen_image_button(BUTTON_IMAGE_BUY_NOWBUTTON_BUY_NOW_ALT) . '</a>&nbsp;';
              }
            } 
    The $a issued domain/products_all.html?disp_order=6.
    The $b issued domain/(product name)-p-(products_id).html?action=buy_now&disp_order=6.
    I think that the products_id trigger the Ultimate SEO.

  6. #656
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Ultimate SEO 2.200 (new features) [Support Thread]

    Quote Originally Posted by su35 View Post
    When click it, the product was added to shopping cart and the current page was redirected to 404 page. ...
    What URL (or chain of URLs) was the site redirected to after the product was added to the cart? What are your settings in Zen Cart for "Display after add to cart"? What was the 404 page URL?

    What version of Ultimate URLs? What version of Zen Cart?
    Last edited by lhungil; 25 Apr 2014 at 04:26 AM.

  7. #657
    Join Date
    Nov 2005
    Posts
    157
    Plugin Contributions
    0

    Default Re: Ultimate SEO 2.200+ (new features)

    I try to add a currency update form in product_info display page, but after redirect, the URL back to dynamic, why?
    the url for product page on my server is correct, even the form action url has not prblem.

    which is :
    before form submit:
    http://temp.local/test-examples-c-23/test-120-p-84.html
    form action url in view html mode:
    http://temp.local/test-examples-c-23/test-120-p-84.html
    after form submit
    http://temp.local/index.php?main_pag...id=84&cPath=23

    form code:

    <?php echo zen_draw_form('currencies_form_header', zen_href_link(zen_get_info_page($products_id), 'cPath=' . $cPath . '&products_id=' . $products_id, $request_type), 'get');
    echo zen_draw_hidden_field('main_page','product_info');
    echo zen_draw_hidden_field('cPath',$cPath);
    echo zen_draw_hidden_field('products_id',$'products_id);
    echo zen_draw_pull_down_menu('currency', $currencies_array, $_SESSION['currency'], 'onchange="this.form.submit();"') . zen_hide_session_id().'</form>';
    ?>
    after submited and the page reload as:

    http://test.local/index.php?main_pag...d=18&cPath=1_2

    where is the problem? i test ultimate seo 2.101 on another test site, that version is good.
    which is :
    before form submit:
    http://temp.local/test-examples-c-23/test-120-p-84.html
    after form submited
    http://temp.local/test-examples-c-23/test-120-p-84.html

  8. #658
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Ultimate SEO 2.200+ (new features)

    Quote Originally Posted by weber View Post
    I try to add a currency update form in product_info display page, but after redirect, the URL back to dynamic, why? ...
    Background (why):
    Because the Zen Cart code for currencies issues the redirect (instead of silently handling the request and continuing to display the requested page). The redirect you are seeing is NOT part of Ultimate URLs.

    The Zen Cart currencies code is loaded at breakpoint 90.
    The Zen Cart language code is loaded at breakpoint 110.
    The Ultimate URLs code is loaded at breakpoint 120.

    So basically the code handling the "currency change" occurs before Zen Cart has loaded any language information (needed to read the product name, category name, manufacturer name, etc)... So when it constructs the URL, "stock" Zen Cart URLs are used because the language information is not available.


    Thoughts:
    Can I ask what problem you believe is caused by the stock Zen Cart URL being shown in the address bar only after selecting a dropdown from a form?

    If it REALLY bothers you to see the Zen Cart "default" URLs in the address bar... You can simply turn on "automatic redirects" in the Ultimate URLs settings (automatic redirects are not enabled by default). When enabled, requests for a different URL from the canonical URL will trigger a 301 redirect to the canonical URL.


    NOTE: When a browser (or search engine) visit the page using a "stock" Zen Cart URL, the canonical link will contain the URL as generated by Ultimate URLs. This holds true no matter what is shown in the web browser's address bar.
    Last edited by lhungil; 2 May 2014 at 03:22 AM.
    The glass is not half full. The glass is not half empty. The glass is simply too big!
    Where are the Zen Cart Debug Logs? Where are the HTTP 500 / Server Error Logs?
    Zen Cart related projects maintained by lhûngîl : Plugin / Module Tracker

  9. #659
    Join Date
    Nov 2005
    Posts
    157
    Plugin Contributions
    0

    Default Re: Ultimate SEO 2.200+ (new features)

    thanks for your answer. Now i know there is no way for seo to fix the problem as languages/currency handle the redirect before seo url.

    as your mentioned, "automatic redirects" does FIX the url! however, some new problems come....

    I used "Multilanguage Ultimate SEO" in plugin area, which is based on your mod plus some fixes for language prefix, for eample, http://test.local/en/.... for english, http://test.local/fr/.... for french, etc.

    It was working except the currency code i mention above. however, after i enable the "auto redirect", all url change from http://test.local/en/xxxxx-p-id.html to http://test.local/xxxxx-p-id.html?languages_id=1, even the http://test.local/shopping_cart.html becomes http://test.local/shopping_cart.html?languages_id=1

    can you tell me what is problem and which code handle this, i am trying to figure out how to fix it....

  10. #660
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Ultimate SEO 2.200+ (new features)

    Please ask in the "multilanguage" mod... I do not support the changes made by that module...

    If I was forced to guess, I'd venture the other module (or your merge) does not correctly alter the URL generation as per your desired URL. The "auto redirect" in this version of Ultimate URLs simply calls href_link to determine the final URL.

    May also be worth reading the past comments in this thread in regards to the 3rd party module you mention.

 

 

Similar Threads

  1. Ultimate Fade-In Slidehow Support thread
    By outeredge2 in forum All Other Contributions/Addons
    Replies: 158
    Last Post: 4 Feb 2017, 03:10 AM
  2. Ultimate Cross Sell [Support Thread]
    By ultimate_zc in forum All Other Contributions/Addons
    Replies: 239
    Last Post: 17 May 2015, 03:25 AM
  3. Ultimate Content Glider [Support Thread]
    By ultimate_zc in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 4 Sep 2012, 05:16 AM
  4. Re: Simple SEO URL [support thread]
    By creamcrackers in forum General Questions
    Replies: 2
    Last Post: 16 Aug 2009, 03:02 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