Show Posts

Messages - browneyedgirl

Pages: [1] 2
Support / Re: What if any code changes that I make will survive upgrade?
« on: October 19, 2015, 05:22:04 PM »
Okay is there a way to automatically pick up the changes at upgrade or is this a manual process regardless? using code diff tools?  Only changes made through the admin interface (e.g. language defs, block layout, form creation etc will be saved but  other code modifications will not be?  Or is there a method using some kind of hook to pick up changes that are perhaps in a seperate file that is not going to be overwritten during upgrade?

Please ignore -request - I left the "Upload directory name (admin/system/upload/)" field blank and it seems to be working now.
I guess I had a bad directory or maybe it was just looking for a single directory name instead of a path.


I have created a new form where one of the fields is of type "file".   When I click submit on the form, I get an email with all of the other information but the file is not attached? (not sure if it is supposed to be attached in the email or whether it is uploaded to my file system.
On the form creation page - the field:   "Upload directory name (admin/system/upload/) is set to "admin/QuoteRequest".  (I  assumed this is where the file would be stored.   (I created a  directory called "QuoteRequest" in the admin dir.)

Any ideas on what I am doing wrong? I am using version 12.4. with the default template and am currently in maintenance mode.
(note I  also have a max filesize of 10 mb) configured for this field - The file I uploaded was only 2 mb.

Support / What if any code changes that I make will survive upgrade?
« on: October 19, 2015, 12:42:39 PM »

I am relatively new to AbanteCart and webpage development in general. I have set up my e-commerce site using the existing code and configuration tools 9e.g. layout, blocks, modification of language definitions to change text mesages etc.  However, there have been a few instances where changes via the admin interface are not sufficient to get the look I want.   For example, I  have modified the file:

public_html/AbanteCart /storefront/view/default/template/pages/product/product.tpl.

in order to show the available amount of inventory for the given product.

In searching through  the file structure for abantecart, I see that there are some files (e.g. category.php ) which has the following note at the top :

   Do not edit or add to this file if you wish to upgrade AbanteCart to newer
   versions in the future. If you wish to customize AbanteCart for your
   needs please refer to for more information.

However, i do not see this message on all files - so I'm wondering if someone could help answer  the following:

A) which, if any, file changes survive upgrade?
B) If File modifications like the one above do not survive upgrades, how does one go about making changes in a way that will survive upgrade?

(BTW, the above comments suggest going to to find out, but I'm not sure where on I should be looking for info on customizing my AbanteCart instance.)


Thanks - Yes, I am using the default template.

Yes, since there is no indication to the customer as to what the *** on the checkout page mean,  I tried to see if I could change it. 
I managed to find the code in cart.tpl file (under ...storefront/view/default/template/pages/checkout/cart.tpl).

 I  originally put additional text  but would ideally (for the reasons you also mentioned)  like to provide an indication as to how many items available.  I therefore tried the following but it does not print anything - if anyone know how to add the right variable syntax, I would appreciate the help.   I figured since the purple highlighted text already existed, I could simply have it display in the text.    If i replace "stock" with any of the other parametes (e.g. name, model, the text will print so I'm not sure why "stock" will not print.  Also  for some reason, if I replace "stock" with "quantity", it for some reason, places a box around the value when displayed - I don't understand why since I didn't change any other formatting.  Anyway here's the code snippit i was trying to modify in cart.tpl:

<?php foreach ($products as $product) { ?>
               <td class="align_center">
                  <a href="<?php echo $product['href']; ?>"><?php echo $product['thumb']['thumb_html']; ?></a>
               <td class="align_left"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
                  <?php if (!$product['stock']) { ?>
                     <span style="color: #FF0000; font-weight: bold;"> *** This product is not available in the desired quantity or is out of stock!There are <?php echo $product['stock'] ?> units left. This item will be considered a Pre-Order item at checkout.  </span>
                  <?php } ?>

FYI - for anyone else trying to modify this,  I found the code to add  .


The section with  comments:  Product Description tab & comments  has the following:

<?php if ($stock) { ?>
      <span class="productinfoleft"><?php echo $text_availability; ?></span> <?php echo $stock; ?>
<?php } ?>

I copied and pasted  the following :
<span class="productinfoleft"><?php echo $text_availability; ?></span> <?php echo $stock; ?>

to the
"right Details" section under "Product Details " (which is closer to the beginning of the file closer .  I inserted it  just before
<div class="quantitybox">
                     <?php if ($display_price) { ?>

(i did not include "if $stock" as i found that it would not display if Availability was 0.  (interestingly, it does show if the availability is a negative #!)

Lee, Thanks for your suggestion.  I had thought of the same thing for my account terms  since I already have a link to my privacy policy included.  So account terms is set up to require agreement to Terms and Conditions. 

Note that with Guest checkout, there is no requirement to agree to Account terms, just checkout terms - so I was trying to see how I could  add Terms and conditions + returns policy as items to agree to  - I guess I could add a link to the returns policy from the Terms and Conditions as well and just use that for both Account and checkout terms.   Other solution would be to disable Guest checkout but i figured that not doing so might also be a deal breaker for some.

Appreciate you taking the time to responde.

Thank you very much for the detailed reply.  Much appreciated!

I would like to second the request or find out how I can do this. If the  description is long,  the customer may not see the Availability and currently the checkout just show three red asterisks but does not indicate what those asterisks mean.

 I have the following documents - Terms and Conditions, Privacy Policy and Return Policy.  Is there a way to select multiple of these documents to Account Terms and Checkout Terms? so customers are forced to agree to both documents as opposed to just one?  When I look at Checkout Terms and Account Terms under System->Settings->Checkout tab, It seems that I can only select one document each.

Running version 1.2.4.



I am fairly new to AbanteCart.  when I log into admin,  I see the following buttons on the left hand side. Two questions:

1) What are these buttons for?    Moving them to the right  does not lead to any noticeable difference in the displayl/  Hovering over the buttons does not provide any indication as to what they are.
2) i presume the current states as shown in the pic is "off",  Sliding to the right changes them to "orange" which suggests the option is "on?"

Hi Basara,

Yes,  I see the same message as you on the website.  I am referring to any emails that are sent to the customer after the fact.  That is, , if I go to Sales->Orders-> adn then select the order id ->Edit->Status & Comments. .  If I update the Status, add a comment and select "Notify Customer" to "On", then the customer is sent an email and in that email body is a link to the order ID.  Except, as mentioned above, if I click on that URL, it sends me to the account login page and not to a page showing their order details.  Is this a bug or did I perhaps miss something in my settings/config?  Thanks.

I am currently in Maintenance mode doing some testing on my website.  My website is configured to allow for Guest Checkout.
I placed an order as Guest checkout with "notify customer" selected.

If I look at the email sent to the guest customer, there is link in the email which allows them to see their order.

e.g. :
To view your order click on the link below:
<my website url>/index.php?rt=account/invoice&order_id=14

If i click on that  link, it takes me to the account login page instead of showing the details of the order.

e.g. above link is redirected to the following link:
<mywbsite url>/abante2/index.php?rt=account/login&token=3545ac7ade93a988f46bdfeb037f49a1

Any ideas as to why this would be happening?

BTW:  I have version 1.2.4 installed

timieh, thanks so much for the input.  That works for me.

hi Abolabo - sorry, I'm new to all of this - you mentioned css of my template.  Can you please  explain to me what you mean by "css of your template"?  is this a file with extension .css?  If so,  I see under AbanteCart/admin/view/default/stylesheet - several .css files - not sure which one I would need to modify.
I also found under AbanteCart/admin/view/default/javascript/ckeditor a "contents.css"  file that has several items regarding font, headers etc.
Can you please clarify which file you are referring to?

Also, You said to just add my rules there.   Can you expand on that?, I don't know how to add a "rule" or what the syntax of the "rule" would be.

As mentioned, before, even when I  select Header 1, it doesn't seem to impact the size of the text displayed (in the editor or on the actual webpage. 
The other problem I have, is that when I use the "bullet" button to list items,  it shows the bullet in the editor but on the actual webpage, there are no bullets.  Any thoughts on why that might be happening and how  i can fix it?.  I'm looking for a way to be able to select a different font, font size, underline , bold etc (similar to the editor that is available  here in this forum.

   As a workaround, I tried copying and pasting the source generated from my cubecart version of the text  but not everything was formatted the same upon saving of the file (perhaps because it dd not know how to resolve the formatting?

I appreciate any education you can provide on this topic.  Creation of websites is all very new to me.  Thanks.

Pages: [1] 2

Powered by SMFPacks Social Login Mod