Modification of the module under opencart and contact downloads
$this->load->model('sale/order');
$results = $this->model_sale_order->getOrders();
Foreach ($results as $result) {
$this->data['orders'][] = array(
‘plus’ = +
‘customer’ => $result[‘customer’]
‘telephone’ => $result[‘telephone’],
'order_id' => $result['order_id']
and the
The
$output = “;
$order_export = ‘contact’(string) (date ('Y-m-d-Hi' )‘.csv’
$tmp = DIR_SYSTEM‘logs/’
$uid = uniqid();
$tmp_dir = $tmp“ . . . .The $uid.and ‘;
$file is $tmp.“ . . . .of $uid.‘.csv’if (($handle = fopen($file, 'w')) !== FALSE) {
$ods_title = array(
“Plus”
“Family Name”
Phone 1 – Value
‘Website 1 – Value’,
and the
fputcsv($handle, $ods_title, ';', '"');
Foreach ($this->data['orders'] as $fields) {
fputcsv($handle, $fields, ';', '"');
The
fclose ($ handed )
The other {
Return to “;
The
if (($output = file_get_contents($file)) !== FALSE ) {
Unlink ($ file )
The
$this->response->addheader ('Pragma: public');
$this->response->addheader ('Connection: Keep-Alive');
$this->response->addheader('Expires: 0');
$this->response->addheader('Content-Description: File Transfer');
$this->response->addheader('Content-Type: application/octet-stream');
$this->response->addheader('Content-Disposition: attachment; filename='.$order_export);
$this->response->addheader('Content-Transfer-Encoding: binary');
$this->response->addheader('Content-Length: '.Strlen ($ output )
$this->response->setOutput ($output)
exit ($this->response->output());
The
But there’s one discomfort that all orders are loaded out, and if you load them all again in the contacts in Google will be duplicate.They can, of course, be removed by clicking search and unifying duples, but it’s not comfortable.You can also edit the file before importing.But it is also uncomfortable.I want only orders that have not been uploaded before the button to be loaded.At the same time, the file was loaded not to the server, but also to download.I see two solutions: the difficult where it is how to store the last data of the last download.to be able in the mysql request to indicate with which order to start the download.more simple this conditionally speaking field where the number of the last current order is entered in the store (e.g. order 100) the button is pressed to download the order has been downloaded by this number, the value (100 has been preserved), the next time we enter the new number of the last order (e.g. 125) and the previous stored field and make the request mysql to download with such it on such it.. but the solution honestly is not very impressive.In general, if there is a possibility how it automatizes the process of download in the google contacts no I don't know through the corner how to do this solution is quite clear that it will not be cheap but can be discussed
Client's review of cooperation with Vasily G.
Modification of the module under opencart and contact downloadsThere are people with whom it is pleasant to work. It pleases. And then recently I have that answer once a hour, that cold, that joke online, but at the level of class 10. I’m used to working 18-20 hours a day with my angry rhythm. Freelancer has always been in touch. The number of attempts was minimal. I recommend it.
Freelancer's review of cooperation with Maks Lev
Modification of the module under opencart and contact downloadsThe customer was always in contact, quickly answered questions and quickly checked the work done.
I am very pleased to work together and I hope there will be more projects!
Current freelance projects in the category PHP
Developer for CMS website project on Drupal 7 + PHP/MySQL.We are looking for a developer to assist with the setup of a CMS site on Drupal 7 + PHP/MySQL. Task:1. Create product cards for the entire range of products (currently, not all products on the site have product cards with descriptions and characteristics).2. Add correct… Content Management Systems, PHP ∙ 1 day 10 hours back ∙ 39 proposals |
Looking for a Bitrix24 specialist / CRM integrator to set up automation.Our company works with CRM Bitrix24. We need a specialist who can set up automatic addition of phone numbers to leads/orders in two formats. Automation must be correctly configured for two countries: the Republic of Moldova and Romania. Task: When creating a lead or order in… PHP, Web Programming ∙ 2 days 8 hours back ∙ 24 proposals |
Website optimizationOptimization of the website jdgreta.co.uk on Shopify. SEO audit attached to the project. Main tasks - - Fix all meta data - Complete the technical specifications for the programmer (since this project combines tasks for both the programmer and SEO, if you are not a company -… HTML & CSS, PHP ∙ 3 days 5 hours back ∙ 32 proposals |
Horoshop SpecialistNeed a specialist who can correctly set up the product Feed. Problem: Currently, over 13,000 products are being uploaded with the same type value (e.g., "everything for manicure and pedicure"). Because of this, it is impossible to segment products in Google Ads and set different… PHP, Website Maintenance ∙ 4 days 7 hours back ∙ 21 proposals |
Make sure that order emails from the store do not go to spam.Currently, there is a store on OpenCart, and order emails are landing in spam. We need to ensure they go to Inbox (ukr.net gmail) and check it. The hosting provider wrote: Poor email delivery may be related to a low sender reputation - IP or domain. In this case, we can advise… PHP, Web Programming ∙ 5 days 8 hours back ∙ 47 proposals |