close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Need to modify cart's tables and shipping with e-cart

Thread began 2/02/2010 7:18 am by John_GR | Last modified 2/03/2010 3:03 pm by Jason Byrnes | 844 views | 3 replies |

John_GR

Need to modify cart's tables and shipping with e-cart

Hello
I am really desparate trying to make things work since a lot days...
I am a designer with no coding experience and i would really appreciate it if the replies to this thread would be as simple and straightforward as possible...

I purchased powerstore 2 in order to make an e-shop for a client. The problem is that we are in Greece so i had to modify some of the features of powerstore, such as shipping etc.
After feedback from the forum i purchased e-cart 5.

A. What i need to do is to apply some flat shipping rates.
for example :
-if the total weight of products is less than 50 kg, the shipping is 20euros etc.
I have no problem crafting these rules but i

after crafting them, the shipping cost is not visible at the cart page.

I haven't made any other modifications to the files... the only thing i did was:
1. opened the cart.php file
2. i edited the WA_Store_Cart file and changed currency to euros, kgs and made the shipping rule.
3. I removed the FEDEX, UPS and UPS shipping rules.
4. I uploaded files to the server. (you can check at: index.php )

When i add products to the cart, there is only the total cost...
I now i have not done something that i should have.

B. I notice that:
At the cart page, there is not a column for total weight... I wonder if there must be a column for the weight of each product for the shipping rules to be effective...
If there must be this kind of column, how am i supposed to create it?

Is there some kind of code i must add? Could you please send me an example code if needed?

C. Also,
Are there some settings i have to enter to the globals file for bypassing the ups, fedex and usps shipping rates calculation?

Please, if there is someone that can help me with this issues, provide a non techy and straightforward solution, i am really in big trouble with my client, because i'm way off the deadline trying to make things happen.

D. Last but not least, the changes i need to do at the cart page, or anywhere else, are they going to affect the checkout procedure in any way? are there certain things i must notice?

For your reference i include the cart.php file, the cart definition and the storecart files, as well as a couple of screenshots from the shipping rules interface and the cart's tables.

Any help would be much appreciated...

Attached Files
php_files.zip
Sign in to reply to this post

Jason ByrnesWebAssist

on the cart.php page, the row for showing the shipping has been removed.


find the following code:

php:
<?php

  
//WA eCart Merchandizing Show End
  //ecart="WA_Store_Cart"
  
}
  
?>
            <?php
  
//WA eCart Merchandizing Show Start
  //ecart="WA_Store_Cart"
  
if ($WA_Store_Cart->GetCharges() > 0)     {
  
?>
            <tr>
              <th>Charges:</th>
              <td><?php echo WA_eCart_DisplayMoney($WA_Store_Cart$WA_Store_Cart->GetCharges()); ?></td>
            </tr>
            <?php
  
//WA eCart Merchandizing Show End
  //ecart="WA_Store_Cart"
  
}
  
?>
            <?php
  
//WA eCart Merchandizing Show Start
  //ecart="WA_Store_Cart"
  
if ($WA_Store_Cart->GetTax() > 0)     {
  
?>
            <tr>
              <th>Sales Tax:</th>
              <td><?php echo WA_eCart_DisplayMoney($WA_Store_Cart$WA_Store_Cart->GetTax()); ?></td>
            </tr>
            <?php
  
//WA eCart Merchandizing Show End
  //ecart="WA_Store_Cart"
  
}
  
?>





and change it to:

php:
<?php

  
//WA eCart Merchandizing Show End
  //ecart="WA_Store_Cart"
  
}
  
?>
            <?php
  
//WA eCart Merchandizing Show Start
  //ecart="WA_Store_Cart"
  
if ($WA_Store_Cart->GetCharges() > 0)     {
  
?>
            <tr>
              <th>Charges:</th>
              <td><?php echo WA_eCart_DisplayMoney($WA_Store_Cart$WA_Store_Cart->GetCharges()); ?></td>
            </tr>
            <?php
  
//WA eCart Merchandizing Show End
  //ecart="WA_Store_Cart"
  
}
  
?>
<?php
  
//WA eCart Merchandizing Show Start
  //ecart="WA_Store_Cart"
  
if ($WA_Store_Cart->GetShipping() > 0)     {
  
?>
            <tr>
              <th>Shipping:</th>
              <td><?php echo WA_eCart_DisplayMoney($WA_Store_Cart$WA_Store_Cart->GetShipping()); ?></td>
            </tr>
            <?php
  
//WA eCart Merchandizing Show End
  //ecart="WA_Store_Cart"
  
}
  
?>
<?php
  
//WA eCart Merchandizing Show Start
  //ecart="WA_Store_Cart"
  
if ($WA_Store_Cart->GetTax() > 0)     {
  
?>
            <tr>
              <th>Sales Tax:</th>
              <td><?php echo WA_eCart_DisplayMoney($WA_Store_Cart$WA_Store_Cart->GetTax()); ?></td>
            </tr>
            <?php
  
//WA eCart Merchandizing Show End
  //ecart="WA_Store_Cart"
  
}
  
?>






if you do not wish to use shipping rate lookup, disable shipping in the WA_Globals:
$WAGLOBAL_Shipping_Enabled = false;

Sign in to reply to this post

John_GR

thanks jason
it works. Seems it had been removed by accident...

Sign in to reply to this post

Jason ByrnesWebAssist

glad to hear it is working.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...