- Posts: 12
- Thank you received: 0
Unique item Id's and alias
11 years 9 months ago - 11 years 9 months ago #1017
by Deny
Unique item Id's and alias was created by Deny
Hi Bram, many thanks for such a powerful extension.
I have question regarding the items that has tittle eg: Converse All Star..
I have more than 10-20 items that come with the same tittle but the products are all different (e.g model no, image, price )
When i parse them no problem, but on the listing page when i click on the product - it opens another listing page that comes with the same tittles. How can i make them unique? How i can eliminate the dublicated tittles and give a new alias (e.g add converse-all-star-1, converse-all-star-2...) so that i can go to product detail page straight away?
If you look at the link below, you will see what i mean. Thanks in advance!
dealaggregatordemo.cmext.vn/deniz/produc...s-demo/acce-cossette
I have question regarding the items that has tittle eg: Converse All Star..
I have more than 10-20 items that come with the same tittle but the products are all different (e.g model no, image, price )
When i parse them no problem, but on the listing page when i click on the product - it opens another listing page that comes with the same tittles. How can i make them unique? How i can eliminate the dublicated tittles and give a new alias (e.g add converse-all-star-1, converse-all-star-2...) so that i can go to product detail page straight away?
If you look at the link below, you will see what i mean. Thanks in advance!
dealaggregatordemo.cmext.vn/deniz/produc...s-demo/acce-cossette
Last edit: 11 years 9 months ago by Deny.
Please Log in to join the conversation.
11 years 8 months ago - 11 years 8 months ago #1019
by redactie
Replied by redactie on topic Re: Unique item Id's and alias
you could create unique titles in a callbackfunction
$item=$item . ' ' .$item;
assuming you have something usefull in the Select3 field
or change the product url to add the items ID:
$item=$item . ' ' .$item;
assuming you have something usefull in the Select3 field
or change the product url to add the items ID:
Code:
#from default_mcol.php
$product_id=$item['items_id'];
# ....SNIP
$product_url=JRoute::_( $this->where['baselink']."&". make_urlencoded(array("qt"=>$product_title,"id"=>$product_id)));
Last edit: 11 years 8 months ago by redactie.
Please Log in to join the conversation.
11 years 8 months ago #1021
by Deny
Replied by Deny on topic Re: Unique item Id's and alias
Many thanks for prompt reply. I will try them now.
Kind regards,
Kind regards,
Please Log in to join the conversation.
11 years 8 months ago #1046
by Deny
Replied by Deny on topic Re: Unique item Id's and alias
Hi Bram, your second option worked perfectly, many thanks!
Please Log in to join the conversation.
11 years 8 months ago #1072
by godfather
Replied by godfather on topic Re: Unique item Id's and alias
hi bram i would ask if the product ids are a fix value ? or do they change when i refetch the feed and evry product get a new id ?
i think it will cause a problem with the Search engines having the id in the url , if it changed by evry refetching. isnt it ?
or how do the id's work ?
thank u
i think it will cause a problem with the Search engines having the id in the url , if it changed by evry refetching. isnt it ?
or how do the id's work ?
thank u
Please Log in to join the conversation.
11 years 8 months ago #1073
by redactie
Replied by redactie on topic Re: Unique item Id's and alias
Short answer : the Id is stable as long as the item in the feed does not change. That is the item after manipulation by the callback functions
www.affiliatefeeds.nl/en/46-general/3103-unique-items.html
www.affiliatefeeds.nl/en/46-general/3103-unique-items.html
Please Log in to join the conversation.
Time to create page: 0.652 seconds