Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Support / PaidSystem Support / Completed Order - User Changes Category - Not Good

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

Completed Order - User Changes Category - Not Good

More
9 years 5 days ago #19577 by kgeary
I'm getting close to making Adsmanager work great.
I have different prices for each category, some are $10 and some are $30.
After the user has posted an AD and paid for it (yay!), they can go into the AD, from their CB Profile page, and they can UPDATE the AD.
Change the text, post new images or delete images.
All good.
BUT!!
They can also change the category under which they published.
This is not good. They can change to a more expensive category without paying for it.
I have restricted each AD to only 1 category.
How can I prevent the user from changing that category once they have paid and published?

Also, when they UPDATE an existing ad the page title says "Write a New Classified AD" Post AD.
That's confusing, since they are not writing a new ad, they have already paid and published.

I could hide the category field on the UPDATE page, but I'm not sure which file to change since it says "Write a New Class AD".....

Thanks,
Kathy
More
9 years 3 days ago #19599 by loic
Hello,

To do this, you need to customise the code.
In 'components/com_adsmanager/views/edit/tmpl/default.php' or 'templates/your_template/html/com_adsmanager/edit/default.php' if you are using an override, you can see at the line ~111 to ~122 the function that display the category, to hide it when the ad is updated, you can do something like that.
<?php
if($this->isUpdateMode == 1) {
echo "<input type='hidden' id='category' name='category' value='$this->catid' />";
} else {
//copy-paste the code that display the category list.
}
?>

You can do something similar for the title of the page.

Best regards
Time to create page: 0.181 seconds
Powered by Kunena Forum