kaavain
Forum Replies Created
-
Just did it.
$product->get_permalink() this gets link to product page. Which get_???() returns product name?
Great and many thanks! It works.
- This reply was modified 7 years, 11 months ago by kaavain.
@dualcube Thank you for your will to help me, I’m really appreciate it. But, of course, now the “add to chart” is missing, because your plugin is activated. To get it back I need to deactivate your plugin. This action I’m afraid to do because it is working site and I’ve started translation of your plugin so I do not want to loose it. But the thing is simple, now the block where we the button I need looks like this (I’ve removed not iimportant code)
<li class="post-168 product type-product status-publish has-post-thumbnail product_cat-production-3d-printers first instock shipping-taxable product-type-simple"> … some code here - image and other … <a class="fancybox-inline button" href="#contact_form_pop">Сколько стоит?</a> … hidden block with contact form here … </li>Before your plugin was activated it was second button there, it was NOT add to chart but looks like this – the fault of my programmer. This button iwas mean “more details” and had just a link to product page….
<li class="post-168 product type-product status-publish has-post-thumbnail product_cat-production-3d-printers first instock shipping-taxable product-type-simple"> … some code here - image and other … <a class="fancybox-inline button" href="#contact_form_pop">Сколько стоит?</a> <a href="http://www.jetcom-3d.ru/production-3d-printers/conceptlaser-m2-cusing-multilaser/" data-quantity="1" class="button product_type_simple ajax_add_to_cart" data-product_id="470" data-product_sku="" aria-label="Прочитайте больше о “ConceptLaser M2 cusing Multilaser”" rel="nofollow">Подробнее</a> … hidden block with contact form here … </li>@dualcube, the button disappeared after you great (really great, it do its job perfectly) plugin was enabled. The link where now it is disappeared is http://www.jetcom-3d.ru/production-3d-printers/ and the button code was
Подробнее
But, again, ypur plugin works fine. It was fault of my programmer who left the button like it is “add to chart”.
If you’ll tell me how your plugin check the button, may be I could fix it.Dear Sirs
Thank you for the replay, it was fast but not exactly the answer. Let me explain:– hidding “add to chart” is great, I need it.
– my button was NOT “add to chart” it was transformd FROM “add to chart” but it is NOT, it is just a link to the single product page.
So the behavior of your plugin was wrong. I think the blame is on my programmer – he left a lot of properties of “add to chart” button so it mislead your plugin and it hided “wrong” button.
So, I would be thankful to you if you’ll explain me HOW your plugin determine that the button is “add to chart” – we’ll remove this property from our button and it will be back aain.
- This reply was modified 7 years, 11 months ago by kaavain.