Suffusion + Commerce Pack + Jigoshop = how to hide prices

General questions pertaining to how certain issues can be resolved
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

Suffusion + Commerce Pack + Jigoshop = how to hide prices

Postby ak71 » 17 Apr 2012, 03:28

Hi there,

first of all thank your 4 this great theme, i am using it for days now and still haven't tried all the possible options. The commerce pack also saved me lots of trouble with jigoshop, it was just a click'n'go after spending hours trying to solve the problems by myself!

But i have a small question: do you know how i can hide all the product-prices for non logged in users? all products should be visible for all users, but only the logged in users should see the attached prices as well.

greetings & keep up the good work!
alexander
ak71
 
Posts: 9
Joined: 17 Apr 2012, 02:40

Re: Suffusion + Commerce Pack + Jigoshop = how to hide price

Postby drake » 17 Apr 2012, 04:16

The theme just show up the output of Jigoshop. Because the plugin don't have such an option you can't prevent the price to be printed, at least not by Suffusion Options. The only way that I see is to edit the core files of Jigoshop.
If you edit jigoshop.php you will find a long function jigoshop_price( $price, $args = array() ) {. Immediately after that line add condition: if ( is_user_logged_in() ) {. At the end of function you can see the instruction return $return;. Immediately after that put the closing bracket } for if. Your new function need to look like this:
Code: Select all
function jigoshop_price( $price, $args = array() ) {

if ( is_user_logged_in() ) {
........
   return $return;
}
}


The above change will prevent the price to be calculated (and displayed) for non logged-in users. Make sure that you disallow guest purchases at Jigoshop Settings -> General -> Checkout Page, otherwise you will have a lot of purchases with value of 0.
You will have to make the change at every upgrade of Jigoshop.
drake
 
Posts: 3765
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania

Re: Suffusion + Commerce Pack + Jigoshop = how to hide price

Postby ak71 » 20 Apr 2012, 03:41

hi drake,

thanks a lot, you're the best!!! the prices are hidden, some minor graphical problems do occur with the red ribbon-pricetag...

the only major problem is that i can still go use the cart or checkout without being logged in, all prices are missing so it really looks strange. But ordering for guests is disabeld so there seems to be a problem with jigoshop, or is this the usual shop behaviour?

greetings
alex
ak71
 
Posts: 9
Joined: 17 Apr 2012, 02:40

Re: Suffusion + Commerce Pack + Jigoshop = how to hide price

Postby drake » 20 Apr 2012, 04:24

It is the behavior of Jigoshop - with or without my code it act the same - checkout and orders aren't disabled for guests, but they are invited to login if they complete their cart and wish to continue to checkout. For that reason I tell you to disable guests purchases - otherwise you can have a lot of purchases with 0 value. You can try a workaround - use Role Scoper plugin and block access to Checkout pages for non-registered users. In that way they will be blocked before seeing those pages. Also for blocking specific widgets - like the Cart itself for non registered users can use Dynamic Widgets that provide 2 simple checkboxes to select between logged in/out users.
drake
 
Posts: 3765
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania

Re: Suffusion + Commerce Pack + Jigoshop = how to hide price

Postby ak71 » 26 Apr 2012, 04:18

hi drake, thx for the suggestion of the Role Scoper plugin, i was searching for this kind of plugin already but there are way to many available, so i will check this one out first.

you seem to be quite deep into jigoshop, do you know a working method/plugin to use jigoshop with multiple languages (german/english) and different products (because prices will be different: same product but in the german shop it costs 20 € and in the english one 26 $)?

i'm using a wordpress multi site installation (using sub-directories) with the "Multilingual Press" right now, but i have bad troubles with freshly added categories not showing up in the english shop. but this can be due using the "Enable Multi-Site" Plugin for converting single to multi site, so a full reinstall seems to be needed :(

greets
alex
ak71
 
Posts: 9
Joined: 17 Apr 2012, 02:40

Re: Suffusion + Commerce Pack + Jigoshop = how to hide price

Postby drake » 26 Apr 2012, 04:45

I simply use Transposh for multilingual part - it have a pretty fair automatic translation by the help of Microsoft API, but also users with certain capabilities can edit this translation from frontend. You, as admin, can tailor your translations to be perfect on all pages (You can see how it works on the site where I'm working now http://www.rembrandthoeveamsterdam.nl - in Romanian, Dutch and English works fine, you can test in Deutsch). Transposh provide also automatic detection of browser language, so, probably you will see the pages already in German.

For multicurrency part I saw that is provided a multicurrency converter plugin for Jigoshop, I don't test it because I don't meet this situation until now. But you can try to see if it help.
drake
 
Posts: 3765
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania

Re: Suffusion + Commerce Pack + Jigoshop = how to hide price

Postby drake » 27 Apr 2012, 03:05

So, I tested Jigoshop multicurrency plugin - it's good enough to display a price in more currencies, just choose currencies and the plugin display a list with price automatically converted to those currencies (http://www.rembrandthoeveamsterdam.nl/de/Shop/Test/)

But, if you wish to sell a product in more than one currency you simply can't, legally and fiscally speaking... You need to use the currency from your country, because your IRS calculate and take taxes only in local currency.

The other approach is to have 2 shops, one for GB, one for Deutschland. You already started in that direction by using the multisite environment. But, in multisite installation, even if all subsites use the same theme and the same plugins, every subsite had a separate space in database - so each subsite will have it's own, unique, configuration. In other words, your GB shop is completelly separated by the German one. You need to make all steps for configure each shop separatelly, and more than that, you need to create categories - products with prices in different currencies for each of those subsites... Figure that you practically have 2 sites, not one, even those are located on the same server, with the same wordpress...
drake
 
Posts: 3765
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania

Re: Suffusion + Commerce Pack + Jigoshop = how to hide price

Postby ak71 » 30 Apr 2012, 05:27

I'm using the "multisite language switcher" right now, seems to do the job but it's acting a bit strange in my setup, hope the developer can help me there.

you are right, the payment with all these currency converters is the fixed one configured in the shop. as i need only euros and dollars the wp multisite setup (ger & eng) seems to be the right decision for this.

i found one small quirk with jigoshop & suffusion commerce pack: if you define grouped products, there will be additional the (untranslated) word "From:" (for the lowest price of all the grouped product) so the price doesn't fit into the ribbon, so we have 2 "bugs"

untranslated phrase "From" (or is this from jigoshop?)
ribbon to small for phrase & price

yeah, haveing two seperate shops involve a lot more work, for the next shop i will use the import function for shure, adding all the products twice is really a pain in the *ss ;)
ak71
 
Posts: 9
Joined: 17 Apr 2012, 02:40

Re: Suffusion + Commerce Pack + Jigoshop = how to hide price

Postby drake » 30 Apr 2012, 06:01

Suffusion Commerce Pack just put in accord the output from Jigoshop with the mark-up of Suffusion. Without this plugin you will see, by eg., the sidebars all over the place not as it's normal - as sidebars... In rest... what words, or what values is displayed on the screen is only the Jigoshop part, and if those words are translated or not can be either a problem of multilingual plugin, but you can understand that Suffusion and the commerce pack don't calculate prices, and don't translate anything from any plugin you can use. You use Jigoshop, anyone else use Buddypress... there are thousands of plugins - it's not the Suffusion business to take care of all of these.

For ribbon, if you give me the url of your site I can try to give you a custom CSS code to enlarge it to fit all price.
drake
 
Posts: 3765
Joined: 26 Jul 2011, 07:56
Location: Constanta, Romania

Re: Suffusion + Commerce Pack + Jigoshop = how to hide price

Postby suhaibroomy » 08 May 2012, 23:13

hi....i want a cutrency convertor script that i can add to paypal file so that the currency m using(rupees) gets automaticaly converted to dollars which is accepted by paypal.....i am using jigoshop...any help would be appreciated...thank u
suhaibroomy
 
Posts: 1
Joined: 08 May 2012, 23:07

Next

Return to Support Requests

Who is online

Users browsing this forum: Google [Bot], otxztnkw and 7 guests