L
L
lam3r862020-10-02 01:34:17
PHP
lam3r86, 2020-10-02 01:34:17

One product card, 2 prices: for new and discounted. How to implement a page without get variables?

Among the goods placed on YandexMarket, there are new and discounted goods, for example, with defective packaging. YandexMarket requires that the same product, at "full price" and "discounted", have different links.
I found a store that also places on YandexMarket both a new product (condition) and a discounted one (with defective packaging). The same model, but in different states. And both of these links lead to the same page with this product, but the determination of the discounted or full cost occurs depending on which link I clicked on YandexMarket.

https://market.yandex1.ru/product--gazovaia-varoch... (Gas hob simfer h45v30b400, auto ignition), one with a markdown, the other without (full price).

question: how can I do the same in my store, and not create two pages (on one full price, on the other - discounted)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
entermix, 2020-10-02
@lam3r86

No way, in your example different links.

https://simfershop.ru/catalog/varochnye-paneli/gazovye-varochnye-paneli/gazovaya-varochnaya-panel-simfer-h45v30b400-chugunnye-reshetki-s-avtopodzhigom-/?OFFER_ID=75336
https://simfershop.ru/catalog/varochnye-paneli/gazovye-varochnye-paneli/gazovaya-varochnaya-panel-simfer-h45v30b400-chugunnye-reshetki-s-avtopodzhigom-/?OFFER_ID=75337

I
Ivan, 2020-10-02
@piccca

So when a user clicks on a page in the market, some kind of ajax request or something else occurs, otherwise the market would not understand what kind of product. And then, after the transition, the values ​​​​in the session are checked, something like that, and the desired product is issued. And if a direct transition is a new product, something like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question