Novosti:

Aktualne Joomla! verzije: 3.10.11 i 4.2.6

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - darkookrad

#1
Imao isti problem i riješio ga kad sam pročitao ovih par redova u joomlinom htaccess.txt fajlu

# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
##

## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks 


Dakle, problem je u liniji "Options +FollowSymLinks"

Treba ju samo zakomentirati i riješen problem!

Dakle, treba izgledati ovako:

#Options +FollowSymLinks
#2
Može li mi netko pomoći?

Kljent mi traži slijedeće:

kad se "login" kupac prijavi želim da se pored cijene koja je definirana određenim postotkom  za grupu kupaca kojoj pripada,
prikaže i osnovna cijena proizvoda te postotak za koji je ista snižena.

Naišao sam na jedan forum i čovjek kaže slijedeće:

***************************

Well this probably isn't the most elegant solution, but it works.  In your price.tpl.php file at the top you could do something like:

$base_price2 = ($base_price * .1) + $base_price;
echo 'Original Price: ' . $base_price2 . '<br />';


That will echo the original price without the 10% discount above your sell price.

************************
OVO GORE RADI I  TO JE OK, ALI:
************************


Now if you have different %'s on products then this wont work. you will have to do a simple database query using the product_price_id variable available in the price.tpl.php file and get the original price. It would look something like this:

$pid = $price_info['product_price_id'];

$db =& JFactory::getDBO();
$query = "SELECT `product_price` FROM `jos_vm_product_price` WHERE `product_id` = $pid";

$db->setQuery($query);

$result = $db->query();

echo 'Original Product Price: ' . $product_price;

***********************
OVAJ DIO mi NIKAKO NE FUNKCIONIRA!!???

Ima li netko kakvo rješenje?


Unaprijed zahvaljujem!


Darko