Как добавить социальный замок на разные товары в virtuemart 3

More
9 years 1 month ago #5585 by Алексей
Добры день
Есть небходимость выводить разные купоны в социальном замке для разных товаров
например если товар стоит 3000 р. то открываемый купон будет на 3% , а если 5000р. то 5%
вопрос: если вывожу данный плагин на страницу товара в "настраиваемом поле" через плагин вставки php кода Sourcerer PRO
заголовок видно а кнопок не видно

но если в поле "описании товара" ввожу замок в формате { jllikelock }текст{ /jllikelock }
то кнопки (соц.сетей) появляются в обоих местах, и все работает

подскажите как быть в такой ситуации. B) или есть другой вариант для этого

Please Log in or Create an account to join the conversation.

More
9 years 1 month ago #5590 by JoomLine
создайте тикет joomline.net/ru/helpdesk/plugin/jlsocialinterlock.html - тут проблема в том, что вам необходимо писать программный код условиями. На типа такого...
Если цена больше или равна 3000, то выводим такой замок, если 5000, то такой.

Please Log in or Create an account to join the conversation.

More
9 years 1 month ago - 9 years 1 month ago #5597 by Алексей
Добрый день
мне не нужно автоапределелие когда и какой должен быть купон
мне нужно чтобы в карточке товара я мог проставить в ручную код
Если с { jllikelock }текст{ /jllikelock } это проходит - в описание товара я пишу тот купон который хочу чтобы открывался при репосте этой страницы
то с форматом:
<div class="inter-lock">
<?php
require_once JPATH_ROOT.'/plugins/content/jllikelock/helpers/helper.php';
$link = 'site.ru';
$hiddenHtml = '<p>Место где я могу указать какой нужен купон IFSK2016</p>';
echo plgJLLikeLockHelper::loadLikeLock($hiddenHtml, $link);
?>
</div>
это не проходит
Вот страница где это реализовано:
www.gamesareus.ru/vm/type/strategy/lords-of-xidit-detail.html
как только убираю замок из описания товара .. перестает работать верхний замок возле цены:
www.gamesareus.ru/vm/type/strategy/deus-detail.html
(А как раз соц.замок мне нужен именно в этом месте .. рядом с ценой)
Может можно было и разместить в кратком описании товара, но в этом поле формат { jllikelock } не работает

Вот такой парадокс :whistle:
может в карточке товара
/templates/template_joomla/html/com_virtuemart/productdetails/default.php
нужно прописать дополнительный путь к плагину или добавить какой нибудь класс??
Last edit: 9 years 1 month ago by Алексей.

Please Log in or Create an account to join the conversation.

More
9 years 1 month ago #5600 by JoomLine
Код
<div class="inter-lock">
<?php
require_once JPATH_ROOT.'/plugins/content/jllikelock/helpers/helper.php';
$link = 'site.ru';
$hiddenHtml = '<p>Место где я могу указать какой нужен купон IFSK2016</p>';
echo plgJLLikeLockHelper::loadLikeLock($hiddenHtml, $link);
?>
</div>
Должен вызываться без всяких доп тегов.
Если это не так надо смотреть ваш сайт.

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum

Last from the forum

    • As Sam explored further, he
    • One day, a curious boy named Sam moved into the house with his family. As he explored the property, he noticed a rusty, old key lying under a bush. Sam picked it up, wondering what it might unlock. After searching the house and finding nothing, Sam decided to try the key on the garden gate. To his surprise, the key fit perfectly. With a turn of the key and a creak of the hinges, the gate slowly swung open. Inside the garden, Sam was greeted by a sight of wonder. The garden was overgrown but full of vibrant flowers, exotic plants, and a small, sparkling pond. In the middle of the garden stood a beautiful stone statue of a unicorn. As Sam explored further, he discovered a small plaque next to the statue. It read: "To whoever finds this garden, may you always find joy in the beauty of nature and the magic of discovery." Sam spent hours in the garden, exploring every corner and marveling at the hidden beauty. The garden seemed to have a magical quality that made Sam feel at peace and incredibly happy. From that day on, Sam made it a habit to visit the garden every day, taking care of it and sharing its beauty with his friends and family. The once-forgotten garden became a place of joy and wonder for everyone who visited. And so, Sam learned that sometimes, the greatest treasures are not just the secrets we uncover but the beauty and joy we find in them.
    • In Component / Afisha Joomla
    • voip phone
    • ne day, a monkey drove his car near a lake. Sudden, he saw a tiger under a tree. The tiger saw him, too. The tiger ran very fast at the monkey. The monkey was very afraid and he and his car fell into the lake. The monkey couldn't swim and he shouted. A rabbit came and he jumped into the lake. The abbit swam to the monkey but did not help him. Both of them shouted forhelp. Luckily, a giraffe came along. He was very tall. He helped the rabbit and the monkey.  
    • In Component / Afisha Joomla
    • Sildenafil 25 mg – Safe, Subtle, and Effective
    • is a low-dose yet powerful solution for men experiencing mild symptoms of erectile dysfunction (ED). Ideal for first-time users or those seeking a more subtle approach, this dosage offers a safe and effective way to enhance sexual performance without overwhelming the body. By increasing blood flow to the penile during arousal, Sildenafil 25 mg helps you achieve and maintain a satisfying erection with minimal side effects. Its gentle action makes it suitable for daily use or occasional support, giving you confidence and control when you need it most. Rediscover intimacy—naturally and discreetly.
    • In Component / Slogin
© 2010- JoomLine
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. joomline.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

email: This email address is being protected from spambots. You need JavaScript enabled to view it.