opencart

Opencart, OC 1.5.1.3, captcha error

試著忘記壹切 提交于 2019-12-07 07:23:41
问题 OC 1.5.1.3, the Captcha image doesn't show on none of these pages: product / review section contact page by accessing this http://www.directmall.co.uk/index.php?route=information/contact/captcha (the direct link which should generate the image) I can't see any errors (Apache logs / error.txt file). I can't see any spaces within the language files - in fact I've redownloaded the entire EN package just to make sure.. I suspect a broken dependency (even if I have GD.. there must be something

Opencart's $this->config->get('module_var_name')

痞子三分冷 提交于 2019-12-07 06:53:43
问题 I'm trying to customize an Opencart payment module, I see many places where config info is being used, but I cant find anything that creates what variables are in use. I know in the admin pages if I select 'paypal standard' I can set all the 'config' info, but I cant find the 'model' underlining it, is there a model, I wish to create a new config setting, settable inside the admin page How does the admin page know which variables to set? If I change the admin 'view' for the payment module to

Fedex PHP soap api with multiple service types?

雨燕双飞 提交于 2019-12-07 06:45:01
问题 i am using fedex soap api for retrieving shipping rates, but in ServiceType i am able to send only one type i.e. PRIORITY_OVERNIGHT, how can i send multiple Services in one request like GROUND_HOME_DELIVERY, INTERNATIONAL_ECONOMY, PRIORITY_OVERNIGHT,STANDARD_OVERNIGHT? 回答1: You can omit the $request['RequestedShipment']['ServiceType'] from the request and FedEx will return all available shipping methods. You'll then need to loop through the $response->RateReplyDetails array to extract each

You do not have permission to access this page, please refer to your system administrator

感情迁移 提交于 2019-12-07 05:30:50
问题 I am an administrator, and I have installed an extension of News Letter from: http://www.opencart.com/index.php?route=extension/extension/info&extension_id=12825 When I attempt to use this, it returns the error below: error: You do not have permission to access this page, please refer to your system administrator. 回答1: Login to admin, go to System > User Group . Edit your admin usergroup (probably Top Administrator group). Add permission to your new extension modules (both Access Permission

opencart seo url rewriting

大城市里の小女人 提交于 2019-12-07 00:10:48
I've successfully managed to get SEO URLs to work in opencart and have also managed to tweak the standard SEO URL file to incorporate other custom URLs. The one i am having trouble with relates to a blog that I've set up. The table for the blog entries has an SEO keyword column for each respective entry. The current URL comes up as http://www.imbued.co.uk/blog?news_id=5 with 5 being the 5th blog entry. I would rather the URL was cleaner such as http://www.imbued.co.uk/blog/seokeywordfromthetable Can the SEO URL file below be tweaked for it to come as such? <?php class ControllerCommonSeoUrl

How do I get an external page coupon/voucher form to work in OpenCart?

最后都变了- 提交于 2019-12-06 23:39:59
问题 I have another page in my OpenCart environment, let say the about us page, which has these forms below, assuming the user has items in their cart, these forms should work but they do not: Enter your coupon code here: <form action="index.php?route=checkout/cart" method="post" enctype="multipart/form-data" id="basket"> <input type="text" value="" id="coupon" name="coupon"/> <input type="hidden" value="coupon" name="next"/> <input type="submit" class="button" value="Apply Coupon"/> </form> Enter

How can we use opencart events?

旧街凉风 提交于 2019-12-06 21:38:21
问题 I have searched a lot about opencart triggers but didn't find a proper example. In opencart 2.0 there are triggers on which developer can hook function and perform something just like wordpress action and filters i guess. For example in catalog/model/checkout/order.php there is a trigger $this->event->trigger('post.order.history.add', $order_id) Can someone help me to hook my function on the above trigger? 回答1: Important Note: this answer applies to OC >2.0.x.x and <2.2.x.x. The problem here

Opencart: How to relate product options (like size and color)?

三世轮回 提交于 2019-12-06 16:49:31
I'm using opencart version 1.5.5.1 for our website. I need to add more than one option for products. For example: I need to show shirts of sizes- Large/Medium/Small and colors White/Black/Blue/Red/Green etc. By default opencart allows us to add separate quantities for each color and size. How can I mention that we've 5 Large Shirts of Blue Color, 3 Medium Shirts of White Color etc. ? Please help. Thanks in Advance! I guess this would only be possible if You create an options for size x color combinations only. Customer then would have to pick the desired size and color in one option, like: S,

vqmod wildcard search using regex

南楼画角 提交于 2019-12-06 16:05:18
As an example here I am trying to replace all $this->load->model(*); , the * represents a wildcard search/replace. What is the correct way to do this in a regex? <operation> <search regex="true" position="replace"><![CDATA[ $this->load->model(.*); ]]></search> <add><![CDATA[ $this->load->model('catalog/information'); ]]></add> </operation> The escaping required should be pretty minimal. You only need to escape the $ and the parentheses like so <search regex="true" position="replace"><![CDATA[~\$this->load->model\(.*?\);~]]></search> Also as you've rightly done in your answer to this, you need

How to change theme layout in Opencart?

假如想象 提交于 2019-12-06 16:01:02
Help me on how do i change the layout theme for opencart. I want to have my layout of my site. Thank you. I've tried changing the CSS but it didn't work. HDP First of all, check, are you which is theme layout using in your store? Go to Admin > System > Settings > Edit your store > Store Tab > & then check, you are which template selected here. (default or any other template..) Go to your site source > catalog > view > theme > default(the previously selected template) > stylesheet > & then you can modify stylesheet.css file. (you will changes in stylesheet.css files according to default