Advertisement:

Author Topic: Toggle Item Status issue (for me anyway)  (Read 1219 times)

ozclix

  • Jr. Member
  • **
  • Posts: 69
Toggle Item Status issue (for me anyway)
« on: July 05, 2017, 04:22:47 pm »
Hi,

I have been looking at running this plug in and spent a few hours trying to do this today without success but see it has been downloaded by many and no issues discussed on the forums.

I am using osclass wizards theme and entered the 2 lines of code in the suggested areas (item.php) but nothing shows, have also tried on item post php.

Ideally I would like to have the toggle option where the logged in user edits their listing (item post php?) .

I also have seo wiz installed but not sure if that is creating problems (as this shows on the listing/edit page as well).

Any suggestions where this code should be placed to work effectively with this theme?

Thank you for your time.

Liath

  • issues
  • Hero Member
  • *
  • Posts: 1346
  • </html> the end is always near
Re: Toggle Item Status issue (for me anyway)
« Reply #1 on: July 05, 2017, 05:59:00 pm »
Can you please activate debug mode and take a look in debug.log for possible error messages?


https://doc.osclass.org/Debug_PHP_errors

ozclix

  • Jr. Member
  • **
  • Posts: 69
Re: Toggle Item Status issue (for me anyway)
« Reply #2 on: July 06, 2017, 12:18:00 pm »
Thanks, I will try it and get back to you (I have never used this function so please be patient.....it may take me a little while).

One thing I noticed, when trying to pace the code in the same section as you show in the help of the plugin, it doesnt appear to be the same on the item php of my theme (or I have't located it), so I will spend some time checking this also in the next couple of hours just to make sure.  It is dinner time here in Ausralia and the kids are restless at the moment.  I will try to check back with you this evening local time.

Thank you again, much appreciated.  The fact that I couldnt find anyone else on the forum reporting an issue seems to point to my own inexperience activating this plugin.

ozclix

  • Jr. Member
  • **
  • Posts: 69
Re: Toggle Item Status issue (for me anyway)
« Reply #3 on: July 06, 2017, 06:30:55 pm »
Thank you for your patience. 

I ddnt know how to run the debug thing, however I have gone back through my process and realised that rather than put both codes in the same php you showed as example that the first code should go in item post php (toggle function) and the second (showing message) towards the top on item php which places the bar .

I have a couple more questions..... I see you have a 'sold' png in 'Assets'  I am wondering if this is meant to show on anything or is it an option to use it somewhere eg maybe in the corner or bottom of pics somehow? or to replace the text that shows?  At the moment the red bar shows when sold with text (as per your example), however nothing shows when an item comes up during search (gallery view) to mark that it is sold, I assume this is normal?

Thank you again for this handy plug in to be available  ;)
« Last Edit: July 06, 2017, 06:34:25 pm by ozclix »

Liath

  • issues
  • Hero Member
  • *
  • Posts: 1346
  • </html> the end is always near
Re: Toggle Item Status issue (for me anyway)
« Reply #4 on: July 06, 2017, 10:10:19 pm »
The image is a leftover, it was used earlier to mark items as sold...


normally all items, where you put the code to show the banner, has to be showed as sold... in search also.

ozclix

  • Jr. Member
  • **
  • Posts: 69
Re: Toggle Item Status issue (for me anyway)
« Reply #5 on: July 08, 2017, 01:56:10 am »
Thank you,
I will have to look into the thumbnail posts that are called during search and see how to have 'sold' added to those as well so the user can see what is sold what is not before they click on the listing page during search and latest listings etc.

Liath

  • issues
  • Hero Member
  • *
  • Posts: 1346
  • </html> the end is always near
Re: Toggle Item Status issue (for me anyway)
« Reply #6 on: July 08, 2017, 02:21:00 am »
I don't think that this is plugin related, but if you want, you can contact me private, to solve this problem...


I can't post my e-mail address, but you can contact me on my webpage

ozclix

  • Jr. Member
  • **
  • Posts: 69
Re: Toggle Item Status issue (for me anyway)
« Reply #7 on: July 08, 2017, 03:59:44 pm »
Thanks Liath,

Apart from the initial issue I was having with placing the code (which was my own error), the other question was more or less to see how extensive the 'mark as sold' was intended within the plug in supplied and any limitations. 

It does work now as you have shown on the listing page but thought for my project it may be worth for me extending the 'sold' display when showing product/item search results....and maybe also learning to see if it would be possible to also allow the user an option to choose whether to include or omit 'sold' items in advanced search results.

I know I dont have the experience to quickly develop this on my own but I have time and willing to learn how to do it, or perhaps someone more experienced in php (like yourself) may think it could be worth looking into as a possible update to the current plugin.

The plug in as it is is great though, very useful and definitely helps point me in the right direction for my own web project and if I get badly stuck will definitely get in touch with you.

Cheers

Liath

  • issues
  • Hero Member
  • *
  • Posts: 1346
  • </html> the end is always near
Re: Toggle Item Status issue (for me anyway)
« Reply #8 on: July 08, 2017, 09:55:54 pm »
You're welcome :)