Jump to content

nikmagnus

Members
  • Posts

    104
  • Joined

  • Last visited

  • Days Won

    1

nikmagnus last won the day on August 6 2020

nikmagnus had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

nikmagnus's Achievements

  1. I bought super checkout and the payment modules wouldn't load. Stuck at 80% loading. I contacted the know band support team and they were quick and helpful solving the issue. Seems to be working well now. https://addons.prestashop.com/en/contact-us?id_product=18016
  2. Dear Developer. Thanks for having a look at this. The language for this client is ENGLISH, so a good grasp of English is required. The successful dev would need to be able to start work on this now and be prepared to estimate cost and time frame after looking at the files. Here is a description of how the functioning module works, then what I need done is below. Module and how it works I have a "module" that was made for my PS1.5 shop. It offers customers to add to their order by doing the following: • when making a new order, the module checks that there is an existing order that is valid, not yet sent or prepared for sending or cancelled • it then displays another carrier in the carriers list which allows the user to select their previous order • this carrier calculates the new shipping cost as a total shipping cost of both orders together minus shipping already paid from previous order. • the amount payable is then charged. • if the combined shipping amount becomes $0 (we have a threshold whereby the shipping goes free over a certain weight), then the shipping that was already paid is deducted from the new order. • if there is a refund due because of • there is a cronjob that then amalgamates the orders back into the original order, and cancels the new order • there are private messages added to the orders one saying it’s been cancelled and merged with order number #xyz; while the original order has a private message added to it saying it’s been merged with new order. • transaction from the new order is placed in the original order For example 1 order#1 10 plants at $30 each + shipping $40 = $340 paid new order would be 1 plant at $20 plus $20 shipping = $60 but “add to" order order#2 1 plant at $20 with new calculated shipping $4 total “add to” order $24 For example 2 order#1 10 plants at $30 each + shipping $40 = $340 paid new order would be 10 plant at $30 plus $40 shipping = $340 (in this example free shipping threshold = 15 plants = 15 kg) but “add to" order order#2 10 plant at $30 with new combined calculated shipping $0 total “add to” = $30 x 10 plus shipping $0 minus $40 from shipping paid in order #1 that would be refunded as total order would be >15 plants = $260 For example 3 order#1 14 plants at $30 each + shipping $50 = $420 + 50 = $470 paid new order would be 1 plant at $20 plus $20 shipping = $40 (in this example free shipping threshold = 15 plants = 15 kg) but “add to" order order#2 12 plant at $20 with new calculated combined shipping $0 total “add to” = $20 x 1 plus shipping $0 minus $50 shipping paid in order #1 that would be refunded as total order would be >15 plants = $20 - $50 = $30 REFUND This order would not cost customer anything and when joined, there would be an email sent that there is a $30 refund. This module was made by changing the original PS files, and adding custom code. I don’t think it was made as a stand alone module. I know that it needs to be re-implemented when PS is upgraded. I do not see that the module has a backend. There is a cronjob.php that handles the merging. What I need done. note this is a fully functional and tested module in PS 1.5 I have upgraded to PS1.6, unfortunately the dev who made this is unable to assist me with the upgrade. I require the module to be installed onto my new PS1.6 website. How I’d like you to do this: Install my old PS1.5 website on website or local host. Figure out what files / SQL changes are needed to make it work. Install my 1.6 website on a website (so that I can see it working) Test the module on the PS1.6 website . Once working upgrade my live site. I shall provide you with the files and SQL data base of both PS1.5 (working) and PS1.6 (version for module to be installed). Regards, Nik Magnus
  3. OK I got it working for adding a state name. It's actually posted elsewhere, but I will put my explanation here for others who are searching: Im doing the same thing but I got it working.in PS 1.6.1.4 In the AdminOrdersController.php (override it is better!) $this->_select = ' css.name AS `state`, then lower down $this->_join = ' LEFT JOIN `'._DB_PREFIX_.'address` ca ON (a.`id_address_delivery` = ca.`id_address`) LEFT JOIN `'._DB_PREFIX_.'state` css ON (ca.`id_state` = css.`id_state`) finally calling it: 'state' => array( 'title' => $this->l('State') ), If this doesn't make sense, have a look at the AdminOrdersController.php file and make an over-ride that includes. this. also see: https://www.prestashop.com/forums/topic/281786-show-customer-group-on-orders-page-in-backoffice/ Cheers, nik
  4. I have done the following: Added: $this->_select = ' addr.address1 AS `address`, and lower down: 'state' => array( 'title' => $this->l('State') ), then later: $this->_join = ' LEFT JOIN `'._DB_PREFIX_.'address` go ON (a.`id_address_delivery` = go.`id_address`) Im really not good at understanding MYSQL and php, and I just cant figure out how to Show the state name rather than just the ID. Any help?
  5. Hi there, Im trying to get the State listed in my Orders list in Back-end. Can anyone help me with what to add to my AdminOrdersController.php override? Thanks in advance nik
  6. I need a developer to upgrade, install and test an already-functional custom module onto our PS1.6 shop. The module was developed for PS1.5.10 and was fully functional, but involved some changes to the core code. Involved adding to an existing order. Further details on request. As the core code for PS1.5 to PS1.6 has changed so little, this job will be mainly seeing where the custom code has been used, moving them to over-rides, applying them to PS1.6, minor tweaks, testing and final installation. Cheers, nik
  7. Hi there, I used this: <p id="pQuantityAvailable"> {if $product->quantity <= 0}<span class="label-danger" style="padding: 3px 8px 4px;">{l s='None Left'}</span> {elseif $product->quantity<5}<span class="label-warning" style="padding: 3px 8px 4px;">{l s='Less than 5 left'}</span> {else} <span class="label-success" style="padding: 3px 8px 4px;">{l s='In stock'}</span> {/if} </p>
  8. This worked well for me in PS 1.6.1.4. Thanks for making these instructions clear and simple. Nik
  9. Hi there dungeon crawler, I have this module working successfully on our prestashop site. It was quite an effort to develop it in conjunction with a dev in India. But yes it's working quite well. Unfortunately it's not a stand alone module, rather quite a bit of custom code..... Cheers, Nik
  10. Hi everyone, Im hoping to add the product quantity when searching for the product in the backend. Currently I go to products and then go down to product name field and type in the product name and press filter. Trouble is, we have a lot of products and load time means it takes a while to do this. A simpler way is to type the product into the search field in the backend, but the result doesnt show the product quantity. Can someone help me to do this? I've found AdminSearchController.php in controllers/admin/ Here seems to be the code: protected function initProductList(){ $this->show_toolbar = false; $this->fields_list['products'] = array( 'id_product' => array('title' => $this->l('ID'), 'width' => 25), 'manufacturer_name' => array('title' => $this->l('Manufacturer'), 'align' => 'center', 'width' => 200), 'reference' => array('title' => $this->l('Reference'), 'align' => 'center', 'width' => 150), 'name' => array('title' => $this->l('Name'), 'width' => 'auto'), 'price_tax_excl' => array('title' => $this->l('Price (tax excl.)'), 'align' => 'right', 'type' => 'price', 'width' => 60), 'price_tax_incl' => array('title' => $this->l('Price (tax incl.)'), 'align' => 'right', 'type' => 'price', 'width' => 60), 'active' => array('title' => $this->l('Active'), 'width' => 70, 'active' => 'status', 'align' => 'center', 'type' => 'bool') ); } What would be the syntax to add product quantity to this? Am I looking at the right thing? Would it be better to do this as an override? In which case, what would I put in the override file? The modified AdminSearchController.php file in total or just a snippet of code? Thanks in advance. Nik
  11. Hi everyone. Im wanting to add to this part of the orders detail page: (PS 1.5.6.2) Date 06/18/2015 17:29:56 | Messages1 | New Customer Messages1 | Products 3 | Total $57.00 I'd like to list the total number of items in the order. Currently the "Products 3" lists the number of individual products, but this is the same as the number of items only if the quantity is 1 each. So in this case: Product A 3 Product B 4 Product C 1 Products is 3 But number of items is 8. I'd like to figure out how to add in "Total items: 8" along side the "| Products 3 |" I've looked into view.tpl (admin/themes/default/template/controllers/orders/helpers/view.view.tpl) And can see the code: <dl> <dt>{l s='Products:'}</dt> <dd id="product_number">{sizeof($products)}</dd> |</dl> <dl> <dt>{l s='Total'}</dt> <dd class="total_paid">{displayPrice price=$order->total_paid_tax_incl currency=$currency->id}</dd> </dl> it seems that sizeof($products) count the individual products. What would be the code to calculate the sum of the quantity of each $product Im thinking it would be something like {array_sum($products->quantity)} Any suggestions? Thanks! Nik
  12. Thanks so much for this. I incorporated this into my override. It works well. Many thanks again! Nik
  13. Could you please tell me how to include a column with the carrier name rather than ID? I've had a try but am a bit lost, getting a blank page.. I saw you solved by PM, sorry, I cant see that. Im trying to use an override AdminOrdersController.php Thanks, Nik I'm using PS 1.5.6. something.
×
×
  • Create New...