virtuemart

virtuemart 3.0.10 disable double confirmation on checkout

萝らか妹 提交于 2020-01-25 12:50:07
问题 There is solution. In my sites on virtuemart I manually (with code editing) do one page checkout (and one step). But after version 3.0.10 my solution no longer work. Before version 3.0.10 I used follow method: In cart/tmpl/default.php in bottom of file present hidden inputs. After <input type='hidden' name='task' value='updatecart'/> add <input type='hidden' name='task' value='confirm'/> . And it works. But after version 3.0.10 I found no other option except hack of virtuemart core: In cart

How to remove a single product from mod_virtuemart_cart

一世执手 提交于 2019-12-25 04:23:00
问题 I've found the solution by the link http://forum.virtuemart.net/index.php?topic=127483.0 from Virtuemart Projectleader: if (!class_exists('VirtueMartCart')) require(VMPATH_SITE . DS . 'helpers' . DS . 'cart.php'); $cart = VirtueMartCart::getCart(); $cart->removeProductCart($yourId); but it doesn't work. I tried to replace DS with DIRECTORY_SEPARATOR because I use Joomla 3.x but nothing changed At the same time $cart->emptyCart() works Joomla 3.3.6, VM 3.0.3 回答1: This is my solutions function

How to browser cache image from php

六月ゝ 毕业季﹏ 提交于 2019-12-25 03:41:04
问题 I use virtuemart. There are a lot of images about the products. But this images come from a php file(imgtag.php), so I can't force the browser with this code to take the product images to the cache: <FilesMatch "\.(flv|gif|jpg|jpeg|png|ico|ttf|eot|swf)$"> Header set Cache-Control "max-age=2592000" </FilesMatch> Example for product image URL: http://www.myshop.com/components/com_virtuemart/show_image_in_imgtag.php?filename=be6160cc3ede6b58d13f4adaa61f49f7.jpg&newxsize=120&newysize=120&fileout=

How can I get product data of a VirtueMart 2 product in an external file?

我的未来我决定 提交于 2019-12-12 03:01:10
问题 is it possible to get the data of a VirtueMart 2 product in an external php file? I'm using joomla 2.5 and VirtueMart 2 and need to retrieve the product data in a php-file on the same host. this php file isn't part of the VirtueMart component and also not part of an other component. this file is supposed to give the retrieved product data to a jquery widget... 回答1: it seems to me that it isn't possible. the best practice in my case is to build a joomla module and enter all my code in the

CSS Width property not respected

喜夏-厌秋 提交于 2019-12-11 19:52:45
问题 I am adding some formatted div tags to a site with virtuemart in Joomla. I have had success so far in this. I modified the template we are using to include a css file "article.css" which contains my custom content. What i have is a div wrapper around two inline divs, both containing text. The first inline div has a given width, so that when you look at the text, the second div text will line up with eachother, as if tabbed. This works perfectly when run in my own test html file, but when i

500 :: Error 500 in joomla login module

Deadly 提交于 2019-12-11 09:29:27
问题 i'm getting 500 :: Error 500 in joomla login module. When the password or username is typed wrongly(only in the server). This is the link of the live project http://bluepink.co.in/login but error message is displayed in the localhost. And Having problem with User mail activation link. Users are not activated when the activation link is clicked. Using Joomla 2.5 and Virtuemart. I have enabled htaccess. 回答1: This may happen due to the temp directory path or log directory invalid path. check the

Display pricing and add to cart button in related products Virtuemart 2.0

无人久伴 提交于 2019-12-11 05:33:40
问题 I would like to display the related product pricing and have add to cart button along with each of the related products. Below is the code snippet from the related products page. The $field does not have any pricing available. How can I show the pricing and "add to cart" button? Thanks in advance <?php foreach ($this->product->customfieldsRelatedProducts as $field) { ?><div class="product-field product-field-type-<?php echo $field->field_type ?>"> <span class="product-field-display"><?php

page reloads on changing the radio buttons

大兔子大兔子 提交于 2019-12-11 05:32:01
问题 I'm working on a checkout process on a site. i wrote a piece of code to handle the steps, using java script and session storage. session storage keeps the current step. i wrote a function to stay on the same step on reloading the page. it works fine, but there is two radio buttons on one of steps that user can choose the payment method using them. when user chooses one of them, page reloads but the function doesn't get called. :/ this is the function: jQuery(document).ready(function() { if

Plugin event methods in Virtuemart for order status

ぃ、小莉子 提交于 2019-12-08 10:32:04
问题 I have my order list in the backend , I want to fire plugin events when order status is changed from Confirmed by Shopper to "Shipped" or "Confirmed" Already using plgVmConfirmedOrder() Which is for confirmed by shopper, and successful transimission of SMS Also plgVmOnShipOrderPayment() Not responding. Any other method or way to do so? I want this methods for the SMS gateway. 回答1: I found the solution to this question. You can use plgVmOnUpdateOrderPayment($virtuemart_order,$status) for this