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
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/
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
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
su35
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??
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
DivaVocals
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 > 0 && $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_ALL, zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_all->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT) . '</a> ';
}
}
I made a bit modification like below
PHP Code:
if (PRODUCT_ALL_LISTING_MULTIPLE_ADD_TO_CART > 0 && $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_ALL, zen_get_all_get_params(array('action')));
$b = zen_href_link(FILENAME_PRODUCTS_ALL, zen_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_ALL, zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $products_all->fields['products_id']) . '">' . zen_image_button(BUTTON_IMAGE_BUY_NOW, BUTTON_BUY_NOW_ALT) . '</a> ';
}
}
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.
Re: Ultimate SEO 2.200 (new features) [Support Thread]
Quote:
Originally Posted by
su35
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?
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
Re: Ultimate SEO 2.200+ (new features)
Quote:
Originally Posted by
weber
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.
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....
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.