Moderator: madimar

Post by Diffice » Sat Feb 13, 2016 7:30 pm

Mi servirebbe che il campo prezzo speciale sia una % e non un importo fisso.
Quindi la visualizzazione e l'inserimento "speciale" non dovrebbe essere
special ma price-price*special/100

Un aiutino?

Ci sono estensioni ma applicano un java che fa il calcolo e inserisce il risultato nel mysql
a me invece serve cambiare il prezzo e in autonomia il prezzo speciale

User avatar
Active Member

Posts

Joined
Thu Aug 16, 2012 7:59 pm

Post by flanders » Sat Feb 13, 2016 7:54 pm

Ciao

dimmi se ho capito bene:

in admin invece di inserire il prezzo special vorresti inserire la percentuale di sconto e questo ti calcoli automaticamente il prezzo special sulla pagina prodotto?

Color Size Table - A table for Colors and Sizes
Super Options - Options with quantities and calculate the upgrade total price automatically
Live New Price with Options - Update price product selecting options
Custom Plus Options - My Extensions


User avatar
Active Member

Posts

Joined
Sun Jun 03, 2012 11:01 pm
Location - Italy

Post by Diffice » Sat Feb 13, 2016 8:08 pm

Ho 6000 prodotti già inseriti, i prezzi variano spesso e li carico con un csv importer
L'importer cambia i prezzi al pubblico
e fin qui tutto ok
Ora mi serve che ogni volta che cambia il prezzo al pubblico in automatico cambi il prezzo reseller, distrubutore, ...

Quindi non voglio fare un upload per ogni gruppo di clienti, ma uno solo

Se il prezzo è 10 e nella casella "special" scrivo 5
non deve essere visualizzato e pagato 5 ma 10-(il 5% di 10)

User avatar
Active Member

Posts

Joined
Thu Aug 16, 2012 7:59 pm

Post by flanders » Sat Feb 13, 2016 8:12 pm

che versione di opencart usi?

Color Size Table - A table for Colors and Sizes
Super Options - Options with quantities and calculate the upgrade total price automatically
Live New Price with Options - Update price product selecting options
Custom Plus Options - My Extensions


User avatar
Active Member

Posts

Joined
Sun Jun 03, 2012 11:01 pm
Location - Italy

Post by Diffice » Sat Feb 13, 2016 8:20 pm

1.5.6.4

User avatar
Active Member

Posts

Joined
Thu Aug 16, 2012 7:59 pm

Post by Diffice » Tue Feb 16, 2016 8:15 pm

Invio i miei sviluppi
Sul file system/library/cart.php ho cambiato la stringa al rigo 185
$price = $price-$price*$product_special_query->row['price']/100;
In questo modo il prezzo aggiunto al carrello non è lo "special" ma è
"prezzo normale" meno la percentuale "special"


Su controller/product.php righi 224/234 ho fatto la modifica che serve a visualizzare il giusto prezzo...naturalmente tale mod va fatta anche su category.php, search.php ecc....

Mi dareste una mano a fare l'xml vqmod ?
mi dareste una mano al test?

User avatar
Active Member

Posts

Joined
Thu Aug 16, 2012 7:59 pm

Post by flanders » Tue Feb 16, 2016 10:23 pm

Hai un mp.

Color Size Table - A table for Colors and Sizes
Super Options - Options with quantities and calculate the upgrade total price automatically
Live New Price with Options - Update price product selecting options
Custom Plus Options - My Extensions


User avatar
Active Member

Posts

Joined
Sun Jun 03, 2012 11:01 pm
Location - Italy

Post by Diffice » Thu Feb 18, 2016 6:20 pm

visto grazie molte per l'aiuto

User avatar
Active Member

Posts

Joined
Thu Aug 16, 2012 7:59 pm
Who is online

Users browsing this forum: No registered users and 77 guests