Show Posts


Messages - abolabo

Pages: 1 ... 133 134 [135] 136 137
2011
General Support / Re: customer order email confirmation.
« on: July 23, 2012, 08:48:33 AM »
Check also your mail server settings.

If sending from user@serviceprovider.tld to user@serviceprovider.tld  the server may refuse to post an email, as the mail user shouldn't need to post mail to themselves.

no. mail-server can deliver  from sender to sender. it's absolutely normal behaviour.


Also - check that the address involved in sending is not blocked by an RBL used by the receiving server.

David

David, php use system mail-client (mailer), that works on webserver, for example, sendmail or simple ssmtp. If you have tuned up mailer you can set mail settings of you abantecart to "mail". Usually hosting servers already tuned up correctly.
If not - use "ssmtp" and set parameters.

testing mail-server before sending is not good idea. That process takes a lot of time. We should run multithread process for order changing, in other case customer will wait.

so.. i just tested mailing..
1. enable alert mails for new orders in setting->mail
2. When you change order status check "notify customer"

All emails was sent, after order confirm (to customer and owner), after order status to customer. All works right.

2012
General Extensions / Re: Placing Asynchronous scripts globally
« on: July 23, 2012, 07:15:26 AM »
This places a single script into the head of the page.

An asynchronous script is split into two (or more) script blocks at least one of which is placed in the foot of the page. (ie, just before the closing of the body).

Also, there are many instances in which placing a script at the bottom of the page is desirable.  I don't see a method which will accomplish this.

David

sorry, but i don't understand what's problem.
First script adds to head.
Second  script tag  - into common/page.tpl before body tag close.

 

2013
General Extensions / Re: Placing Asynchronous scripts globally
« on: July 23, 2012, 04:06:57 AM »
hello.
1. You can place scripts from controller.
2. You can pace "script" tags in your tpl-file.
1st way is prefer.

If you want to place scripts globally you can add it into common/head (php or tpl) file.

i don't know what you doing but if you working on template you can hook controller common/head.php.
for ex. your extension calls mytemplate:
1. create file with hook in directory mytemplate/core/hook.php and include it into main.php
Code: [Select]
(if(!class_exists('ExtensionMyTemplate')){
include('core/hook.php');
})
2. place there hook something like this
Code: [Select]
class ExtensionMyTemplate extends Extension {
   
     public function onControllerCommonHead_UpdateData() {
$registry = Registry::getInstance();
$registry->get('document')->addScript($this->view->templateResource('/javascript/global_scripts/myscript.js'))
    }
}

2014
General Support / Re: language definition problem
« on: July 21, 2012, 06:23:19 AM »
Hi all, I've changed the colour of my website background to black. Now when I'm in maintenance mode the font on the maintenance message won't show (because it's black too) I tried a simple font colour code in the language definitions "index_maintenance" but it didn't work. Now when I log onto language definitions there are pages and pages of duplicate "index_maintenance" definitions. So 2 questions.
1: how do I change the colour of the font
edit storefront/view/default/template/pages/index/maintenance.tpl, you can add style attribute or just add "id" for div and write css rule for it
for ex <div id="maintenance"></div> and add to css file  something like #maintenance{ color: white; }
2: how do I stop the multiple duplications appearing every day when I go to language definitions.
it's a bug of v.1.0.3, we already fixed it in 1.0.4. now preparing to release. will be very soon
Thanks, Craig

2015
General Support / Re: customer order email confirmation.
« on: July 21, 2012, 06:08:51 AM »
 what is mail settings of your abantecart?
Could you check this issue like in it thread http://forum.abantecart.com/index.php/topic,144.msg402.html#msg402 ?


2016
General Support / Re: how to edit a Sub menu?
« on: July 15, 2012, 07:25:12 AM »
I can replicate this issue in 1.0.3.

To reproduce:

1. Add a new menu item in design -> Menu tool.
2. Name it ("test")
3. Set the text ("Test")
4. Set the link ('index.php')
5. Set the parent ("Home")
6. check store front - new drop down item appears in the menu under "Home" listing.
7. Return to Design -> Menu page - no new entry for the Test menu object.
8. Clear browser cache - reload Design -> Menu page - still no new entry seen.
9. Clear site caches (minus error log) - no change
10.  Check error log:

Code: [Select]
2012-07-14 9:46:14 - runtime notice:  Declaration of AMenu_Storefront::_buildMenu() should be compatible with that of AMenu::_buildMenu() in <b>/home/lifesolu/public_html/dev/core/lib/menu_control_storefront.php</b> on line <b>280</b>
2012-07-14 9:46:14 - runtime notice:  Declaration of AAttribute_Manager::getAttributes() should be compatible with that of AAttribute::getAttributes() in <b>/home/lifesolu/public_html/dev/core/lib/attribute_manager.php</b> on line <b>548</b>

David

did you select parent item at design-menu-heading ? i found new item there

2017
General Support / Re: "Subtract Stock" not working..
« on: July 11, 2012, 08:04:16 AM »
I checked with a product with some options. It work. The quantity of the kind of this product decreased after order confirm.

But a product without option, the Total quantity of this product not decreased after order confirm.
Please show me how to setup that feature.

I saw the code in same model file, line 215:
This code checked 'subtract' value in database table 'ac_order_products' to Subtract the quantity in table 'ac_products'.
But I viewed my database, value of field 'subtract' is '0' in table 'ac_order_products', and is '1' in table 'ac_products'.

Code: [Select]
$order_product_query = $this->db->query("SELECT *
FROM " . DB_PREFIX . "order_products
WHERE order_id = '" . (int)$order_id . "'");

foreach ($order_product_query->rows as $product) {
if ($product['subtract']) {
$this->db->query("UPDATE " . DB_PREFIX . "products
SET quantity = (quantity - " . (int)$product['quantity'] . ")
WHERE product_id = '" . (int)$product['product_id'] . "'");
}

Yes, you are right. it's a bug. Need to write

Code: [Select]
foreach ($order_product_query->rows as $product) {
if ( !$product['subtract']) {
$this->db->query("UPDATE " . DB_PREFIX . "products
SET quantity = (quantity - " . (int)$product['quantity'] . ")
WHERE product_id = '" . (int)$product['product_id'] . "'");
}

i mean " if ( !$product['subtract']) {". If we enable subtract for product we don't need decrease quantity of it... and otherwise...
it's stupid mistake.
Thank you.

2018
General Support / Re: Product Price / Cost issue? is it bug?
« on: July 11, 2012, 07:40:33 AM »
Cool so, it means if an admin refresh the product edit page. it wont automatically change the value anymore :)
Thats nice..
Thanks  :)

Yes. it will format numbers by admin language settings (decimal and thousand pointers), even after js-preformatting  and saving. We added common function for preformatting these numbers for database writing.
By the way you can check this on current development version from our github repo

2019
General Support / Re: new upgrade didn't work on my website
« on: July 10, 2012, 05:31:38 AM »
thanks to all.
we added changes into v1.0.4. It will be soon

2020
General Support / Re: Backup Fails with Cannot pack error
« on: July 10, 2012, 05:18:52 AM »
thank you.
Bug-fix will be in the next release soon. ...1.0.4.

2021
General Support / Re: Product Price / Cost issue? is it bug?
« on: July 09, 2012, 01:24:48 PM »
hello.
we changed some number formatting. Now will works correctly.
bugfix will be in next release...1.0.4
Thank you :)

2022
Existing features / Re: Backup/Restore seems largely non-functional
« on: June 28, 2012, 06:21:05 AM »
we added cache cleaning in v1.0.3.
thank you

2023
Feedback on My Store / Re: bug report
« on: June 28, 2012, 06:09:22 AM »
thank you.
we replaced selectboxes  by switch buttons in 1.0.3 on this page.

2024
General Support / Re: "Subtract Stock" not working..
« on: June 23, 2012, 09:04:21 AM »
My quantity in product option is not decreased after order confirm.  :(

I view my database, table 'ac_products', value of field 'subtract' is '1' for all products.
But in table 'ac_order_products', value of field 'subtract' is '0' for all products.

And in file \storefront\model\checkout\order.php - line 150:
Why hasn't it update 'subtract' value for 'ac_order_products'.
Code: [Select]
foreach ($data['products'] as $product) {
$this->db->query("INSERT INTO " . DB_PREFIX . "order_products
SET order_id = '" . (int)$order_id . "',
product_id = '" . (int)$product['product_id'] . "',
name = '" . $this->db->escape($product['name']) . "',
model = '" . $this->db->escape($product['model']) . "',
price = '" . (float)$product['price'] . "',
total = '" . (float)$product['total'] . "',
tax = '" . (float)$product['tax'] . "',
quantity = '" . (int)$product['quantity'] . "'");


Please help me.?

wait. quantity of product option you have to look in control_panel->catalog->products->options. not in general section. Total quantity and quantities of some kinds of this product are not the same. If you decide to set options for product total quantity will ignore.


You show me code that write quantity in order. Please check line 220 in the same model file:

Code: [Select]
$order_option_query = $this->db->query("SELECT *
FROM " . DB_PREFIX . "order_options
WHERE order_id = '" . (int)$order_id . "'
AND order_product_id = '" . (int)$product['order_product_id'] . "'");

foreach ($order_option_query->rows as $option) {
$this->db->query("UPDATE " . DB_PREFIX . "product_option_values
  SET quantity = (quantity - " . (int)$product['quantity'] . ")
  WHERE product_option_value_id = '" . (int)$option['product_option_value_id'] . "'
        AND subtract = '1'");
}

2025
General Support / Re: checkout confirmation won't add potage
« on: June 22, 2012, 10:05:54 AM »
when i throw a few items in the cart and get to checkout confirmation it will show me the contents and individual prices but no combined total and no postage. The postage and combined total is showing on the small shopping cart icon but not on the main checkout page before confirmation.

I'm also getting about 11 warnings for different language definitions "text_confirm" is absent for english, "text_apply" "text_save_edit" etc etc? Any thoughts would be appreciated. Thanks

Hello.
Please replace two files that attached in pathes:
public_html/storefront/controller/pages/checkout/confirm.php
public_html/storefront/view/default/template/pages/checkout/confirm.tpl

about messages. Could you post extensions list that enabled in you abantecart?

Pages: 1 ... 133 134 [135] 136 137

Powered by SMFPacks Social Login Mod