Post by DannyMacD » Tue Nov 03, 2009 7:58 pm

hi there, i think it may just be simple code but i wanted to have the following:

free shipping on orders over "code to pull value from db i think" (Inc VAT)

on the free shipping module that is installed it has a value, i can only assume that value is stored in the db aswell.. is there a way to have that value show up in the text? so when it changes in the admin section it auto updates in the front of store?

many thanks :)

Active Member

Posts

Joined
Fri Jun 26, 2009 6:39 am

Post by Qphoria » Tue Nov 03, 2009 8:04 pm

Code: Select all

$this->config->get('free_total');

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by DannyMacD » Tue Nov 03, 2009 8:09 pm

thank you Q,

the code i used then was:

Code: Select all

free shipping on orders over <?php $this->config->get('free_total'); ?> (nc VAT)

but what it looked like was:

free shipping on orders over config->get('free_total'); ?> (nc VAT)

:( any advise?

Active Member

Posts

Joined
Fri Jun 26, 2009 6:39 am

Post by Qphoria » Tue Nov 03, 2009 10:18 pm

First: eh? where are you adding this
Second: You would need to use
<?php echo $this->config->get('free_total'); ?>

And it's code. If you are seeing the code then you must be trying to enter it in a wysiwyg editor. You need to paste it directly into the tpl file that you want to show it... like header.tpl

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by DannyMacD » Tue Nov 03, 2009 11:03 pm

thats great, but it is going to be placed in the welcome message (used on admin-setting-configuration)
everytime i copy the code in and save, it resrots back to the old code ???

is there a way to install the WYSIWYG editor?

Active Member

Posts

Joined
Fri Jun 26, 2009 6:39 am

Post by Qphoria » Tue Nov 03, 2009 11:38 pm

1. You can't insert it via editor. You have to do what I said above
2. If your settings aren't saving it is because on one of the tabs there is an error.. find the red text. There really should be a main warning at the top expressing this. I'll add a bug for it.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by DannyMacD » Wed Nov 04, 2009 8:15 pm

thats great!

thanks Q,

just a quick one, i wanted to show it as a currency or a number that is 2 decimal places.. it shows the correct value but as: 869.5652173
also shows ex VAT :(
im special and need Inc VAT :(

Active Member

Posts

Joined
Fri Jun 26, 2009 6:39 am
Who is online

Users browsing this forum: No registered users and 6 guests