0 Пользователей и 1 Гость просматривают эту тему.
  • 3 Ответов
  • 2179 Просмотров

Все пересмотрел, не могу найти где можно цвет текста на кнопке "Купить" сменить
Помогите!
*

yAnTar

  • Захожу иногда
  • 296
  • 81 / 3
вы имеете ввиду текст добавить в корзину, или оформить заказ, или возможно что-то другое ?
Firefox the best, Google the best, jQuery the best.
yAnTar блог

да, добавить в корзину, по стандарту он черный
*

yAnTar

  • Захожу иногда
  • 296
  • 81 / 3
Ищите в файле administrator/components/com_virtuemart/html/shop.browse.php такие строки:
Код
		/*** Add-to-Cart Button ***/
if (USE_AS_CATALOGUE != '1' && $product_price != "" && !stristr( $product_price, $VM_LANG->_PHPSHOP_PRODUCT_CALL )) {
$form_addtocart = "<form action=\"". $mm_action_url ."index.php\" method=\"post\" name=\"addtocart\" id=\"addtocart".$i."\">\n
                <label for=\"quantity_".$i."\">".$VM_LANG->_PHPSHOP_CART_QUANTITY.":</label>\n
                <input id=\"quantity_".$i."\" class=\"inputbox\" type=\"text\" size=\"3\" name=\"quantity\" value=\"1\" />
                <input type=\"submit\" style=\"text-align:center;background-position:bottom left;width:160px;height:35px;cursor:pointer;border:none;font-weight:bold;font-family:inherit; background: url('". IMAGEURL ."ps_image/".PSHOP_ADD_TO_CART_STYLE ."') no-repeat left center transparent;vertical-align: middle;overflow:hidden;\" value=\"".$VM_LANG->_PHPSHOP_CART_ADD_TO ."\" title=\"".$VM_LANG->_PHPSHOP_CART_ADD_TO."\" />
                <input type=\"hidden\" name=\"category_id\" value=\"". @intval($_REQUEST['category_id']) ."\" />\n
                <input type=\"hidden\" name=\"product_id\" value=\"". $db_browse->f("product_id") ."\" />\n
                <input type=\"hidden\" name=\"page\" value=\"shop.cart\" />\n
                <input type=\"hidden\" name=\"func\" value=\"cartadd\" />\n
                <input type=\"hidden\" name=\"Itemid\" value=\"$Itemid\" />\n
                <input type=\"hidden\" name=\"option\" value=\"com_virtuemart\" />\n
              </form>\n";
}

и сюда добавляете тот цвет, который вам нужен
Код
<input type=\"submit\" style=\"text-align:center;background-position:bottom left;width:160px;height:35px;cursor:pointer;border:none;font-weight:bold;font-family:inherit; background: url('". IMAGEURL ."ps_image/".PSHOP_ADD_TO_CART_STYLE ."') no-repeat left center transparent;vertical-align: middle;overflow:hidden;\" value=\"".$VM_LANG->_PHPSHOP_CART_ADD_TO ."\" title=\"".$VM_LANG->_PHPSHOP_CART_ADD_TO."\" />
Firefox the best, Google the best, jQuery the best.
yAnTar блог
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Вставка SEO текста по фильтрованным страницам Интернет магазина на VirtueMart

Автор _Santa

Ответов: 0
Просмотров: 861
Последний ответ 03.04.2017, 19:36:08
от _Santa
Изменить шрифт цены и цвет в VirtueMart?

Автор ZverBlin

Ответов: 18
Просмотров: 9900
Последний ответ 28.02.2014, 21:58:00
от C@H
J1.5+Joomfish+Virtuemart1.1 - как переводить атрибуты(цвет, размер и т.д)

Автор iluvvm

Ответов: 0
Просмотров: 887
Последний ответ 12.12.2013, 11:53:02
от iluvvm
Отсоединить кнопку купить от Атрибутов в Joomla 1.5+Virtuemart 1.1.9

Автор Joury

Ответов: 5
Просмотров: 1266
Последний ответ 05.09.2013, 10:29:09
от Joury
Функция вывода кнопки купить

Автор Mishok333

Ответов: 12
Просмотров: 1408
Последний ответ 30.08.2013, 14:15:32
от fsv