Archiwum kategorii: Modyfikacje

[ClassiPress] Multi Category Select

Multi Category Select
By this modification of ClassiPress Theme, You can allow users to publish classified ad in multiple categories and count for this additional fee.

How it works?

In administrative panel You have got 2 additional options to set, price for multiple selecting, and quantity of selected categories by which price will be increased.
For example: if we will set price 5$ and quantity for 6, system will count additional 5$ for every 6 categories.

Screenshot of additional options in Admin panel:

From user side, on Add New page we will have „classic” select category form, and below it section to select more categories (just like in admin panel, list of categories with checkboxes).
To keep inform user about cost for multiple selecting, system automaticly show cost for selected categories.

Screenshot of Add New page:

Then after selecting categories and filled whole ad data, on confirmation page before redirecting to payment system user will see all fees.

Screenshot of Confirmation page:

Screenshot of Single ad listing page:

Modification works best with 2 level categories and Fixed Price Per Ad option.

How to order it? Contact me!

[ClassiPress] Visibility of contact fields

Visibility of contact fields
By this modification of ClassiPress Theme, You may control from administrative panel visibility of contact fields on single ad page.

Default option is „Visible to everyone„, means every visitor will see contact fields, but for some of fields You may set visibility to No, then only registered and logged in users will see these contact fields – others will see information „Visible for logged in„.

Screenshot of single ad page:

Screenshot of edit custom field page:

This modification can be useful if You need to hide some data or wanna improve quantity of new registrations on Your website.

How to order it? – Contact me!

[WP e-Commerce] Minimum order amount

Title of mod: Minimum order amount
Plugin: WP e-Commerce 3.8

Some of payment gateways can not process payments less then 1, 3 or 6$, and for example in our shop we have got products which cost half of dollar… so to protect from that orders which can not be processed by our payment system, we will add small amount filter…

Step 1: Open file „/wp-e-commerce/wpsc-includes/ajax.functions.php” and about line 531 ( inside of the function wpsc_submit_checkout ) add following code:

	if($wpsc_cart->calculate_total_price() < 6) {
		$_SESSION['wpsc_checkout_misc_error_messages'][] = __( 'Not reached the minimum amount of the basket. Minimum is 6$.', 'wpsc' );
		$is_valid = false;
	}

Step 2: Save and upload new file;)

Now, when client will try to finalize order with amount less then our minimum, shopping cart will show him error message „Not reached the minimum amount of the basket. Minimum is 6$.”

Google XML Sitemap for ClassiPress

EN:
Small modifycation of Google XML Sitemap plugin for WordPress to include generating sitemap for ad listings.
Generaly, plugin before make modification generate everything except posts with custom post type (in our case post_type=”ad_listing”).
Tested on ClassiPress 3.0.5.4 and WordPress 3.1.3

PL:
Mała modyfikacja wtyczki do WordPressa Google XML Sitemap aby dołączyć generowanie mapy dla ogłoszeń.
Ogólnie wtyczka przed naniesieniem zmian generowała wszystko oprócz wpisów z własnym typem wpisu (w naszym przypadku post_type=”ad_listing”).
Sprawdzone na ClassiPress 3.0.5.4 i WordPress 3.1.3

Screenshot
Google XML sitemap for ClassiPress Theme

Spolszczenie ClassiPress’a dostępne tutaj.

[modified]Google XML Sitemap
Download/Pobierz

Google XML Sitemap for Clipper

EN:
Working on the last project I was stuck with generating the sitemap for google.
All plugins and solutions suggested on the AppThemes forum did not work properly or does not generate the full sitemap.
So I downloaded newest beta release of Google XML Sitemap, and attach small modification to include generating sitemap for coupons.
Generaly, plugin before make modification generate everything except posts with custom post type (in our case post_type=”coupon”).
Tested on Clipper 1.0.1 and WordPress 3.1.2

PL:
Pracując nad ostatnim projektem utknąłem z generowaniem mapy strony dla google.
Wszystkie wtyczki i rozwiązania sugerowane na forum AppThemes nie działały poprawnie lub nie generowały pełnej mapy strony.
Pobrałem zatem najnowszą beta wersję Google XML Sitemap i naniosłem małe modyfikacje, aby dołączyć generowanie mapy dla kuponów.
Ogólnie wtyczka przed naniesieniem zmian generowała wszystko oprócz wpisów z własnym typem wpisu (w naszym przypadku post_type=”coupon”).
Sprawdzone na Clipper 1.0.1 i WordPress 3.1.2

Screenshot
Google XML sitemap for Clipper Theme

Spolszczenie Clipper’a dostępne tutaj.

[modified]Google XML Sitemap
Download/Pobierz