GK-Tmpl. plus K2+k2store plus GK4 ver. 3.3.4

Support forum dedicated to free and advanced Joomla content presentation module with various layout options and data sources support.
GK User
Tue Dec 18, 2012 7:39 pm
Hi,
I need help for th GK4-Output.

This is Gk-Fest + Virtuemart + News Show Pro GK4 ver. 3.3.4 incl. tax in GK4!
Image

Settings for VM in News Show Pro GK4 ver. 3.3.4
Image

I like the output (Design), but Virtuemart is so stupid, fat and dirty Code!

_______________________________________________________________


This is Gk-Fest + K2store + News Show Pro GK4 ver. 3.3.4

Image
Item Price without tax <-------------------------- I need THIS with tax!!!

I like the Gavick-Template Output, k2 plus k2store. But NSP dont show the item price INCL.tax

Settings for K2store in News Show Pro GK4 ver. 3.3.4
Image

Backend:
k2 + k2store (Content PLUS tax)!!!!
Image

Push the Button "Bestellen" (Add to cart)
Image

I think i have to change this:
\modules\mod_news_pro_gk4\tmpl - Line: 904-907
Code: Select all
                if($config['k2store_price'] == 1 ) {
                    $text_item_price = ($config['k2store_price_text'] == 1) ? '<strong>' . JText::_('MOD_NEWS_PRO_GK4_K2STORE_ITEM_PRICE') . '</strong>' : '';
                   $code .= '<span class="nspK2storePrice">' . $text_item_price . $k2store_currency_before . $plugins->k2storeitem_price . $k2store_currency_after . '</span>';
                    }

I only need help in this line!!
User avatar
Fresh Boarder

teitbite
Wed Dec 19, 2012 3:21 am
Hi

I do not know the answer either. You need to check what is the name of the value where vat is included. Please make a dump of $plugin value:

Code: Select all
print '<pre>';
var_dump( $plugins );
print '</pre>';


Hopefully a right value will be there.
User avatar
Moderator

GK User
Wed Dec 19, 2012 2:45 pm
my Question goes to the Programmer of News Show Pro GK4 or any other Coder!

Correct: Net price plus VAT is gross price - NSP from VM

Incorrect: Net price plus NOTHING is gross price - NSP from K2Store (WHERE IS THE VAT?)

I want to make a Website with:
Joomla 2.5.8 + Gavick-Template-Gk-Fest + k2 + k2store + NSPro GK4 (NOT with virtuemart-its to fat) :D

it should be a simple local delivery service for a friend!
User avatar
Fresh Boarder

teitbite
Wed Dec 19, 2012 10:45 pm
Hi

I'm a programmer. Please make a dump of this value and maybe the correct price is there already.
If not what about adding it directly in this place like for example

Code: Select all
 . $plugins->k2storeitem_price * 1,23 .


instead of

Code: Select all
 . $plugins->k2storeitem_price .
User avatar
Moderator

GK User
Fri Dec 21, 2012 10:54 pm
teitbite wrote:Hi

...
Code: Select all
print '<pre>';
var_dump( $plugins );
print '</pre>';


...

I got something like this ...
Code: Select all
object(stdClass)#376 (5) {
  ["k2storeitem_enabled"]=>
  string(1) "1"
  ["k2storeitem_sku"]=>
  string(4) "PL02"
  ["k2storeitem_price"]=>
  string(8) "29.41177"
  ["k2storeitem_tax"]=>
  string(1) "1"
  ["k2storeitem_shipping"]=>
  string(1) "1"
}
User avatar
Fresh Boarder

GK User
Fri Dec 21, 2012 10:55 pm
teitbite wrote:Hi
....
Code: Select all
 . $plugins->k2storeitem_price * 1,23 .


instead of

Code: Select all
 . $plugins->k2storeitem_price .

I got a server error 500
User avatar
Fresh Boarder

teitbite
Sat Dec 22, 2012 1:41 am
Hi

Ok. From a dump I can see a price is a text not a number. Which means it should be like that:

Code: Select all
. (int)$plugins->k2storeitem_price * 1,23 .
User avatar
Moderator

GK User
Sun Dec 23, 2012 4:52 pm
teitbite wrote:Hi

Ok. From a dump I can see a price is a text not a number. Which means it should be like that:

Code: Select all
. (int)$plugins->k2storeitem_price * 1,23 .

That does not work - Server error 500 ...
In Germany we have 19 percent tax - so I tried also 1.19

btw. Why can not I edit my posts in this forum? (img-Links)
User avatar
Fresh Boarder

teitbite
Thu Dec 27, 2012 2:14 pm
Hi

Please send me an access to FTP. I need to check it myself. This is a regular math equasion so I cannot understand why its causing problems.
User avatar
Moderator


cron