Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

viwm

Newbie
  
  • Posts

    8
  • Joined

  • Last visited

viwm's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In
  • Reacting Well Rare

Recent Badges

0

Reputation

  1. <?php echo $location; ?> Вставляю такой код. Выводится ошибка Notice: Undefined variable: location in Z:\home\localhost\www\shop\vqmod\vqcache\vq2-catalog_view_theme_default_template_product_product.tpl on line 214 Видимо location путь не находит
  2. Добрый день участникам форума. В opencart 1.5.4.1 хочу переделать на страницах категорий и товаров кнопку для покупки на переход по ссылке. Допустим, в админке в товарах на вкладке Данные есть поле Расположение, туда вписываю www.site.ru и при нажатии уже на кнопку Купить пользователь переходит на другой указанный в поле Расположение сайт для заказа. Каким образом такое можно реализовать? Есть код нажатия кнопки в файле template/product/product <div class="cart"> <div><?php echo $text_qty; ?> <input type="text" name="quantity" size="2" value="<?php echo $minimum; ?>" /> <input type="hidden" name="product_id" size="2" value="<?php echo $product_id; ?>" /> <input type="button" value="<?php echo $button_cart; ?>" id="button-cart" class="button" /> </div> template/product/category <div class="cart"> <input type="button" value="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button" /> </div> Как можно вставить значение поля Расположение в значение value="<?php echo $button_cart; ?>". Можно рассматривать и другие поля.
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.