*

Anonymous

  • ***
  • 200 posts
offer price
« on: January 19, 2018, 04:59:44 PM »
hi, i dont want other users will see third user offer price in item page,


name    quantity      price
user1     1                 xxx
user2      2               xxx
user3      1               33$ (logged user)  logged user can see only thier offer price,


if(osc_is_web_user_logged_in() && osc_logged_user_id() == $1['i_user_id']) { ?>   ??? i know , it make no sense, cz  logged user id isnt fetching their own user,

echo $l['i_price']

atleast help me in this topic,  all other user will also get benifet

Innovation is change that unlocks new value  ;)

*

MB Themes

Re: offer price
« Reply #1 on: January 19, 2018, 08:10:52 PM »
@Anonymous
Following condition would make sense:
Code: [Select]
if(osc_item_user_id() <> osc_logged_user_id() || !osc_is_web_user_logged_in()) {
  .... code to be hidden ...
}
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Anonymous

  • ***
  • 200 posts
Re: offer price
« Reply #2 on: January 20, 2018, 06:59:59 AM »
code isnt working!
Quote
if(osc_item_user_id() <> osc_logged_user_id() || !osc_is_web_user_logged_in()) {

unfortunately, osc_item_user_id()  is universal for user,  all users who created offer, can see all other users price,  :-[

i_user_id  can see only own i_price 
« Last Edit: January 21, 2018, 08:14:11 AM by Anonymous »
Innovation is change that unlocks new value  ;)

*

MB Themes

Re: offer price
« Reply #3 on: January 20, 2018, 11:01:27 AM »
@Anonymous
Inside user_offers

Code: [Select]
if((osc_item_user_id() == osc_logged_user_id() || $o['i_user_id'] == osc_logged_user_id()) && osc_is_web_user_logged_in()) {

in order to show single offer.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Anonymous

  • ***
  • 200 posts
Re: offer price
« Reply #4 on: January 20, 2018, 11:53:01 AM »
am sorry! yours code doesnt work! ::)



i think its not possible to fetch price for individual user, :(

« Last Edit: January 21, 2018, 08:12:28 AM by Anonymous »
Innovation is change that unlocks new value  ;)

*

MB Themes

Re: offer price
« Reply #5 on: January 20, 2018, 12:41:35 PM »
For such kind of issues create support ticket.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Anonymous

  • ***
  • 200 posts
Re: offer price
« Reply #6 on: January 20, 2018, 12:49:42 PM »
what about individual price script!

« Last Edit: January 21, 2018, 08:13:01 AM by Anonymous »
Innovation is change that unlocks new value  ;)

*

MB Themes

Re: offer price
« Reply #7 on: January 20, 2018, 01:18:21 PM »
@Anonymous
Inside user_offers

Code: [Select]
if((osc_item_user_id() == osc_logged_user_id() || $o['i_user_id'] == osc_logged_user_id()) && osc_is_web_user_logged_in()) {

in order to show single offer.

This is only code that should work.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots