opencart

Attaching multiple files to addattachment() php opencart

社会主义新天地 提交于 2019-12-13 07:09:31
问题 I want to send multiple attachments in a single email. I get file paths from my download directory and store them in an array and than using for each loop attach them to mail->addattachment($filepath), but it always selects the last attachment.I havent added my foreach code for getting file names from DB. For logs if i do print_r($filePaths); it gives me this output Array ( [0] => /home/ifixandm/public_html/finalUpGrade/download/resumes/03-02-2016_amir_ETicket-EmmiratsView.pdf ) Array ( [0] =

Opencart country of manufacturer [closed]

风格不统一 提交于 2019-12-13 06:00:40
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . How do you create an additional field (dropdown) in the manufacturer's edit page. I need it to add a manufacturer country. I searched the web a lot, but I didn't find any information or documentation. 回答1: It's a long procedure i can only explain the steps, as you know Opencart is MVC based so you have to go

Unable to create Multiple shop with different templates in opencart

醉酒当歌 提交于 2019-12-13 05:58:28
问题 Firstly, thanks to all in advance for helping me, I am Using opencart 1.5.3.1.And i Created multiple shop but i need multiple shops with different templates and layout.I try to change templates of each and every shop but unable to change.If i change theme of default templates of main shop then themes of all shop is changed.if i change the theme of other shop then there is no change...how can i solve this problem.Plz help me. There is another problem is link of the shop.Link of all shops goes

Calculate round retail prices for opencart

Deadly 提交于 2019-12-13 05:58:08
问题 Maybe someone has a clue. I want to round the retail prices to nice numbers in opencart. Base calculation is: (wich should produce € 1,50 - €2,00 - € 2,50 etc) $price = sprintf("%.2f", round($pice * 2) / 2); I thought i'dd do it like this in controler/product/product.php but that ain't working. I don't want to edit all theme .tpl so it has to be done in the opencart code. Now i have this but I get values of €0.49 or €0.99 $price_new = $this->tax->calculate($result['price'], $result['tax_class

getting error while uploading on server

非 Y 不嫁゛ 提交于 2019-12-13 05:27:43
问题 I am developing opencart application , i installed in on localhost ,and customize it but now i am trying to upload it to server but it get error Warning: require_once() [function.require-once]: http:// wrapper is disabled in the server configuration by allow_url_include=0 in /home/content/29/9716229/html/johndhan/telhemboradz/index.php on line 17 Warning: require_once(http://249development.us/johndhan/telhemboradz/system/startup.php) [function.require-once]: failed to open stream: no suitable

sort by size opencart

爷,独闯天下 提交于 2019-12-13 04:37:04
问题 I'm trying to add a new sorting method i'e "sort by height" in opencart. A.location is:catalog/model/catalog/product.php -> added p.height here $sort_data = array( 'pd.name', 'p.model', 'p.quantity', 'p.price', 'rating', 'p.sort_order', 'p.date_added', 'p.height' ); B. in the same file elseif($data['sort'] == 'p.height' ){ $sql .= " ORDER BY(" . $data['sort'] . ")ASC"; /*$sql .= "SELECT * FROM". DB_PREFIX . "product p ORDER BY p.height DESC";*/ } C. location is:/catalog/controller/product

Opencart multistore “domain.com/aaa” instead of “aaa.domain.com”

戏子无情 提交于 2019-12-13 03:56:55
问题 Anyone can help to have "domain.com/store1/any-product" instead of "store1.domain.com/any-product"? The second is what I have and the first is what I would like to have. Maybe some .htaccess code added? Anything else, please? 回答1: You should be able to achieve that by using the following rule in your .htaccess : RewriteEngine On RewriteCond %{HTTP_HOST} ^store1.example.com RewriteRule ^(.*)$ http://example.com/store1/$1 [L,NC,QSA] What the above does is if the condition for store1.example.com

Check this requirement, let me know which Magento Product Type is it?

浪尽此生 提交于 2019-12-13 03:51:46
问题 I'm new to Magento, just finished reading 2 Ebooks. Please check the project requirement below and let me know which Product type is it and what should I have do to achieve the requirement below? The site is going to sell only one product, that is a Bicycle . 1st Tab (Three Options) : Green cycle($30), Red Cycle($35) and Pink Cycle($33). User can select anyone cycle from it. 2nd Tab - Three sizes of cycle has to be shown (SMALL,MEDIUM,LARGE). Color of the cycle is based on the previous

Adding Link to Admin Menu Programatically (OpenCart)

空扰寡人 提交于 2019-12-13 00:46:16
问题 I'm currently developing a module for a friend and need to add a link into the admin flyout menus. I'd prefer not for him to have to edit the files, but so far that's the easiest way I've seen to insert these links (hardcoded into the admin header, that is). The modules work so well that I can't believe there's no easy way to add in an admin link as such. I could always add it into the module settings page, but that seems to defy the purpose of the module settings. Any help is appreciated.

Dont Send email for customers by email opencart 2.3.0.2 in admin

流过昼夜 提交于 2019-12-12 19:15:00
问题 i want to send email for customers email but show message successful but not send email for yahoo or gmail an other. my opencart is 2.3.0.2 Secure SSL/TLS Settings (Recommended) Username: sales@Max10.com Password: Use the email account’s password. Incoming Server: 23.host.com IMAP Port: 693 POP3 Port: 695 Outgoing Server: 23.host.com SMTP Port: 512 IMAP, POP3, and SMTP require authentication. Non-SSL Settings (NOT Recommended) Username: sales@Max10.com Password: Use the email account’s