Ditutup

Zencart Canonical function - Minor Tweak

We are an agency and are seeking regular associations with Zencart / php etc developers for development projects / minor troubleshooting etc.

Below is one such job. Minor according to us - budget can be revisited if you can explain the need for the same.

URL: [url removed, login to view]

The client wanted to have two prices for every product depending on the shipping destination. And also wanted to have the ability to set sales/discounts etc on both the prices.

So we replicated all the products and categories - one for Price 1 and one for Price 2. Hence we ended up with two category pages (id's) and product id's for every product.

Hence I need to canonicalize the category and product pages.

The actual zen cart code is:

1)

Here - I need to check if the product id is greater than 2000 then the canonical url to should point to the URL of the product id minus 1000. So if the current product id is 2646 - the rel canonical tag should point to 1646.

If product id is lesser than 2000 then the function is unchanged.

/**

* for products (esp those linked to multiple categories):

*/

case (strstr($current_page, '_info') && isset($_GET['products_id'])):

$canonicalLink = zen_href_link($current_page, ($includeCPath ? 'cPath=' . zen_get_generated_category_path_rev(zen_get_products_category_id($_GET['products_id'])) . '&' : '') . 'products_id=' . $_GET['products_id'], 'NONSSL', false);

break;

/**

2)

Here - I need to check if the product id is greater than 200 then the canonical url to should point to the URL of the cateogory id minus 100. So if the current category id is 264 - the rel canonical tag should point to 164.

If product id is lesser than 2000 then the function is unchanged.

* for product listings:

*/

case ($current_page == 'index' && isset($_GET['cPath'])):

$canonicalLink = zen_href_link($current_page, zen_get_all_get_params($excludeParams), 'NONSSL', false);

break;

/**

I have seo urls etc installed - so please check the url.

Candidates should be able to do this minor tweak the same day the project is assigned to them.

Kemahiran: OSCommerce, PHP, Kejuruteraan Perisian, Zen Cart

Lihat lebih lanjut: zen cart rel canonical, canonical tag zencart, zencart development, software development agency, i need seo candidates, code agency, check point software, category php id, agency developers, zen cart canonical, us sales agency, linked agency, zencart, software troubleshooting, software development prices, minor, goo, function, function check php, php point sales, code function, seo wanted job, 100 product pages, php function cart, seo job wanted

Tentang Majikan:
( 0 ulasan ) Mumbai, India

ID Projek: #1592339

1 pekerja bebas membida secara purata $10 untuk pekerjaan ini

techwelfare

Hi We could do as per your requirement. u could check that out. we would work till your satisfaction. -- Please check inbox for our previous work.

$10 USD / jam
(53 Ulasan)
6.1