opencart

How can i make my current opencart theme responsive?

人走茶凉 提交于 2019-12-14 03:32:48
问题 How can i make my current active opencart theme responsive? I am using the theme shopcart from themeforest. Regards 回答1: I would recommend using css media queries and create 3-4 different css files. The other option will be creating different themes, detecting the user device in php and load the correct theme, but that will probably be an over kill for your needs at this point. In the following example, I am using 3 css files (mobile.css, tablet.css, desktop.css) but you may need to use 4 or

How insert array to database in open cart?

拥有回忆 提交于 2019-12-14 03:24:42
问题 I build dynamic input by add row table, and user input by autocomplete, then I store PRODUCT_ID in <input name="idp" value=""> E.g User input twice times (HP & Computer) Name Product | PRODUCT_ID HP = 2945 COMPUTER = 8654 Should be in array is = (2945,8654) This is for Controller: class ControllerItemItem extends Controller { //Controller/Item/Item.php private $error = array(); public function index() { $this->language->load('item/item'); $this->document->setTitle($this->language->get(

Opencart developement: change slideshow's position

半城伤御伤魂 提交于 2019-12-14 02:42:17
问题 I am working with opencart. I want to change slideshow from "content-top" to "header". It means, I wanna move the slideshow above the top menu, and it will also displays in every page instead of in home page only. I've done following steps: 1st: add a position named "header" in admin three "slideshow.php" files (controller, language, and view folders). 2nd: I modified header.php:(add those codes after the "//menu" code block in controller folder) $layout_id = 1; $module_data = array(); $this-

Open Cart - Receiving radio value at checkout page [closed]

眉间皱痕 提交于 2019-12-13 22:11:23
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I need help to create a radio box during the checkout. I have no idea how to have the result of the radio box send along with my other information in the checkout page such as billing address and many more. this is what i do , <input type="radio" name="shipping_address" value="existing" id=

How do I add a product to OpenCart from an external site?

只谈情不闲聊 提交于 2019-12-13 20:21:38
问题 I need to add a product to the shopping cart from a website to ocart. I was trying the following code. All I get is "shopping cart empty" after the user clicks the submit button. I made sure that the product id = 40 does exist. thansk for any help <form action="http://***.com/purchase/index.php?route=checkout/cart" id="personalVirtualPrivateServerForm" method="post"> <input type="hidden" name="product_id" value="40"> <input type="hidden" name="quantity" value="2"> <input type="submit" alt=

Post array getting truncated, max_input_vars not working

久未见 提交于 2019-12-13 19:20:03
问题 I'm developing an opencart solution with a cascading option plugin in the admin backend. As such, when saving the form, products with a large combination of options are creating large $_POST arrays. As far as I can see, the array (which is just over 1000 keys long for this product) is being truncated around the 1000 mark (which fits in with the default value of max_input_vars). I am on php 5.3.29 which should allow me to change max_input vars ini setting. I have added to the local php.ini and

How to get database details is views in opencart

自古美人都是妖i 提交于 2019-12-13 09:46:24
问题 I am writing query in view tpl but i don't know how to get database details and execute that query in views in opencart.Here is my code $query=mysql_query("select $prefixorder from opencart "); 回答1: why bothering your self with writing queries using native functions, open cart provides some stuff for you First, read this article, it's great and helped me a lot Here You can now execute the query through $result = $this->db->query("write your query here"); You can get the number of returned

Display Weight under Price in Product Page & Search page [closed]

依然范特西╮ 提交于 2019-12-13 09:29:58
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 9 months ago . i need to display Product Weight under Product price in the single product page & search page on OpenCart 3.0.2.0 . How i can do that ? 回答1: this is relatively simple if you understand the MVC (Modal, View, Controller) pattern. here are the steps required: you need to add the

Label and text field not aligned together? [closed]

北慕城南 提交于 2019-12-13 09:26:08
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 5 years ago . I have yet another alignment issue that needs to be solved. I'm no CSS expert, so I need the experts' help. I have tried playing around in Firebug but I couldn't figure it out. Site where this issue is present: http://bit.ly/13KG6dz (Using bit.ly because IP addresses are not

Wrong opencart product images when I try to share on facebook

此生再无相见时 提交于 2019-12-13 08:58:29
问题 It's my online store http://goo.gl/1AJpjN (opencart 1.5.5.1) The challenge is to share the homepage on facebook properly and the product pages as well. There was no problem with product pages. The addthis.com extension worked quite well, I could see product images with proper title and descriptions on fb... but there was no fb share button for homepage. So, I added fb share button for homepage in blue horizontal menu using fb normal HTML 5 code from here https://developers.facebook.com/docs